summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
Diffstat (limited to 'libc-test')
-rw-r--r--libc-test/build.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index ee68b64fd0..f1b1bd470d 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -82,6 +82,7 @@ fn main() {
if android {
cfg.header("arpa/inet.h");
+ cfg.header("time64.h");
} else if !windows {
cfg.header("glob.h");
cfg.header("ifaddrs.h");
@@ -232,6 +233,10 @@ fn main() {
"dlerror" if android => true, // const-ness is added
"dladdr" if musl => true, // const-ness only added recently
+ // OSX has 'struct tm *const' which we can't actually represent in
+ // Rust, but is close enough to *mut
+ "timegm" if apple => true,
+
_ => false,
}
});