From 60fc1f3f085983aa3fbb74102c270be8de15f9e5 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sat, 10 May 2014 11:21:40 +0100 Subject: Fix tests (#14) --- tests/utimens_nofollow.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/utimens_nofollow.c') 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 @@ -30,3 +32,14 @@ int main(int argc, char* argv[]) return 0; } + +#else /* #ifndef __APPLE__ */ + +#include +int main() +{ + fprintf("utimensat() unavailable on this platform\n"); + return 1; +} + +#endif /* #ifndef __APPLE__ */ -- cgit v1.2.3