Skip to content

Commit 88c4644

Browse files
authored
Merge pull request #3820 from tgross35/backport-carrots
[0.2] Backport of five PRs
2 parents 0bded09 + a9cc872 commit 88c4644

File tree

7 files changed

+6
-2
lines changed

7 files changed

+6
-2
lines changed

build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::env;
22
use std::process::Command;
33
use std::str;
4-
use std::string::String;
54

65
// List of cfgs this build script is allowed to set. The list is needed to support check-cfg, as we
76
// need to know all the possible cfgs that this script will set. If you need to set another cfg

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,6 +2033,7 @@ RTLD_LAZY
20332033
RTLD_LOCAL
20342034
RTLD_NOLOAD
20352035
RTLD_NOW
2036+
RTLD_NODELETE
20362037
TCA_UNSPEC
20372038
TCA_KIND
20382039
TCA_OPTIONS

libc-test/semver/solarish.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PIPE_BUF

src/unix/haiku/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,6 +1791,7 @@ extern "C" {
17911791
lock: *mut pthread_mutex_t,
17921792
abstime: *const ::timespec,
17931793
) -> ::c_int;
1794+
pub fn pthread_sigqueue(thread: ::pthread_t, sig: ::c_int, value: ::sigval) -> ::c_int;
17941795
pub fn pthread_spin_init(lock: *mut ::pthread_spinlock_t, pshared: ::c_int) -> ::c_int;
17951796
pub fn pthread_spin_destroy(lock: *mut ::pthread_spinlock_t) -> ::c_int;
17961797
pub fn pthread_spin_lock(lock: *mut ::pthread_spinlock_t) -> ::c_int;

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,6 +1761,7 @@ pub const ST_NODIRATIME: ::c_ulong = 2048;
17611761
pub const ST_RELATIME: ::c_ulong = 4096;
17621762

17631763
pub const RTLD_NOLOAD: ::c_int = 0x4;
1764+
pub const RTLD_NODELETE: ::c_int = 0x1000;
17641765

17651766
pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;
17661767

src/unix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ cfg_if! {
396396
#[cfg_attr(feature = "rustc-dep-of-std",
397397
link(name = "c", cfg(not(target_feature = "crt-static"))))]
398398
extern {}
399-
} else if #[cfg(target_env = "aix")] {
399+
} else if #[cfg(target_os = "aix")] {
400400
#[link(name = "c")]
401401
#[link(name = "m")]
402402
#[link(name = "bsd")]

src/unix/solarish/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@ pub const FOPEN_MAX: ::c_uint = 20;
12791279
pub const FILENAME_MAX: ::c_uint = 1024;
12801280
pub const L_tmpnam: ::c_uint = 25;
12811281
pub const TMP_MAX: ::c_uint = 17576;
1282+
pub const PIPE_BUF: ::c_int = 5120;
12821283

12831284
pub const GRND_NONBLOCK: ::c_uint = 0x0001;
12841285
pub const GRND_RANDOM: ::c_uint = 0x0002;

0 commit comments

Comments
 (0)