diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-14 09:37:41 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-14 09:37:41 -0800 |
commit | d8e4f651a453a37345153a3dfc8593f2419b08af (patch) | |
tree | 72e161dd029d23253e64b747707848d3cca58527 /libc/libc-test | |
parent | e7ecdef19097428d81a8de65713cb7f36c780b57 (diff) | |
download | nitrocli-d8e4f651a453a37345153a3dfc8593f2419b08af.tar.gz nitrocli-d8e4f651a453a37345153a3dfc8593f2419b08af.tar.bz2 |
Update libc crate to 0.2.46
This change updates the libc crate to version 0.2.46.
Import subrepo libc/:libc at a9e3cc6c1b529eaffef5b82934d0c47203edebe5
Diffstat (limited to 'libc/libc-test')
-rw-r--r-- | libc/libc-test/build.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libc/libc-test/build.rs b/libc/libc-test/build.rs index 460eb72..ffab452 100644 --- a/libc/libc-test/build.rs +++ b/libc/libc-test/build.rs @@ -76,6 +76,7 @@ fn main() { cfg.header("windows.h"); cfg.header("process.h"); cfg.header("ws2ipdef.h"); + cfg.header("signal.h"); if target.contains("gnu") { cfg.header("ws2tcpip.h"); @@ -372,7 +373,9 @@ fn main() { // Fixup a few types on windows that don't actually exist. "time64_t" if windows => "__time64_t".to_string(), "ssize_t" if windows => "SSIZE_T".to_string(), - + // windows + "sighandler_t" if windows && !mingw => "_crt_signal_t".to_string(), + "sighandler_t" if windows && mingw => "__p_sig_fn_t".to_string(), // OSX calls this something else "sighandler_t" if bsdlike => "sig_t".to_string(), @@ -507,6 +510,7 @@ fn main() { n if n.starts_with("P") => true, n if n.starts_with("H") => true, n if n.starts_with("LP") => true, + "__p_sig_fn_t" if mingw => true, _ => false, } }); @@ -652,6 +656,10 @@ fn main() { "BOTHER" => true, "MFD_CLOEXEC" | "MFD_ALLOW_SEALING" if !mips && musl => true, + // MFD_HUGETLB is not available in some older libc versions on the CI builders. On the + // x86_64 and i686 builders it seems to be available for all targets, so at least test + // it there. + "MFD_HUGETLB" if !(x86_64 || i686) || musl => true, "DT_FIFO" | "DT_CHR" | "DT_DIR" | "DT_BLK" | "DT_REG" | "DT_LNK" | "DT_SOCK" |