aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utimens_nofollow.c
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2014-05-10 11:21:40 +0100
committerMartin Pärtel <martin.partel@gmail.com>2014-05-10 11:21:40 +0100
commit60fc1f3f085983aa3fbb74102c270be8de15f9e5 (patch)
tree20a17a60bcfec3f6fb679e9c1f7bc4e3659e8f32 /tests/utimens_nofollow.c
parent5a549e877b2d947cf2be0d0e9decc2b8158ee933 (diff)
downloadbindfs-60fc1f3f085983aa3fbb74102c270be8de15f9e5.tar.gz
Fix tests (#14)
Diffstat (limited to 'tests/utimens_nofollow.c')
-rw-r--r--tests/utimens_nofollow.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/utimens_nofollow.c b/tests/utimens_nofollow.c
index b98275f..8316b26 100644
--- a/tests/utimens_nofollow.c
+++ b/tests/utimens_nofollow.c
@@ -1,4 +1,6 @@
+#ifndef __APPLE__
+
#define _BSD_SOURCE /* For atoll */
#include <stdlib.h>
@@ -30,3 +32,14 @@ int main(int argc, char* argv[])
return 0;
}
+
+#else /* #ifndef __APPLE__ */
+
+#include <stdio.h>
+int main()
+{
+ fprintf("utimensat() unavailable on this platform\n");
+ return 1;
+}
+
+#endif /* #ifndef __APPLE__ */