Skip to content

Commit 6b0dbcd

Browse files
authored
Merge pull request #3821 from tgross35/backport-celery
[0.2] Backport of four PRs
2 parents 88c4644 + 16431da commit 6b0dbcd

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

src/unix/hurd/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2760,6 +2760,10 @@ pub const MREMAP_FIXED: ::c_int = 2;
27602760
pub const MCL_CURRENT: ::c_int = 0x0001;
27612761
pub const MCL_FUTURE: ::c_int = 0x0002;
27622762

2763+
// sys/xattr.h
2764+
pub const XATTR_CREATE: ::c_int = 0x1;
2765+
pub const XATTR_REPLACE: ::c_int = 0x2;
2766+
27632767
// spawn.h
27642768
pub const POSIX_SPAWN_USEVFORK: ::c_int = 64;
27652769
pub const POSIX_SPAWN_SETSID: ::c_int = 128;

src/unix/linux_like/linux/mod.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,14 @@ s! {
327327
// to false. So I'm just removing these, and if uClibc changes
328328
// the #if block in the future to include the following fields, these
329329
// will probably need including here. tsidea, skrap
330-
#[cfg(not(target_env = "uclibc"))]
330+
// QNX (NTO) platform does not define these fields
331+
#[cfg(not(any(target_env = "uclibc", target_os = "nto")))]
331332
pub dlpi_adds: ::c_ulonglong,
332-
#[cfg(not(target_env = "uclibc"))]
333+
#[cfg(not(any(target_env = "uclibc", target_os = "nto")))]
333334
pub dlpi_subs: ::c_ulonglong,
334-
#[cfg(not(target_env = "uclibc"))]
335+
#[cfg(not(any(target_env = "uclibc", target_os = "nto")))]
335336
pub dlpi_tls_modid: ::size_t,
336-
#[cfg(not(target_env = "uclibc"))]
337+
#[cfg(not(any(target_env = "uclibc", target_os = "nto")))]
337338
pub dlpi_tls_data: *mut ::c_void,
338339
}
339340

src/unix/nto/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -3340,7 +3340,10 @@ extern "C" {
33403340
pub fn dl_iterate_phdr(
33413341
callback: ::Option<
33423342
unsafe extern "C" fn(
3343-
info: *const dl_phdr_info,
3343+
// The original .h file declares this as *const, but for consistency with other platforms,
3344+
// changing this to *mut to make it easier to use.
3345+
// Maybe in v0.3 all platforms should use this as a *const.
3346+
info: *mut dl_phdr_info,
33443347
size: ::size_t,
33453348
data: *mut ::c_void,
33463349
) -> ::c_int,

src/unix/solarish/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ s! {
135135
pub struct ifaddrs {
136136
pub ifa_next: *mut ifaddrs,
137137
pub ifa_name: *mut ::c_char,
138-
pub ifa_flags: ::c_ulong,
138+
pub ifa_flags: u64,
139139
pub ifa_addr: *mut ::sockaddr,
140140
pub ifa_netmask: *mut ::sockaddr,
141141
pub ifa_dstaddr: *mut ::sockaddr,

src/vxworks/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,7 @@ pub const S_IRWXO: ::c_int = 0x0007;
797797

798798
// socket.h
799799
pub const SOL_SOCKET: ::c_int = 0xffff;
800+
pub const SOMAXCONN: ::c_int = 128;
800801

801802
pub const SO_DEBUG: ::c_int = 0x0001;
802803
pub const SO_REUSEADDR: ::c_int = 0x0004;

0 commit comments

Comments
 (0)