aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utimens_nofollow.c
diff options
context:
space:
mode:
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__ */