summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-11-03 14:18:52 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-11-04 14:18:07 -0800
commit568705e830b816047fc93a035448dfbb3eecdadc (patch)
tree9ab1d8de7ea0bda3ddbcb5c2501273a135526635 /libc-test
parent6d817ed05af919cc3dd5ea2889018eaa48d87ab9 (diff)
downloadrust-libc-568705e830b816047fc93a035448dfbb3eecdadc.tar.gz
Add time bindings
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,
}
});