aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdeps/trystatimespec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdeps/trystatimespec.c')
-rw-r--r--src/sysdeps/trystatimespec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysdeps/trystatimespec.c b/src/sysdeps/trystatimespec.c
index 75b1231..9e03bc2 100644
--- a/src/sysdeps/trystatimespec.c
+++ b/src/sysdeps/trystatimespec.c
@@ -1,6 +1,8 @@
/* ISC license. */
-#undef _POSIX_C_SOURCE
+#ifndef _DARWIN_C_SOURCE
+#define _DARWIN_C_SOURCE
+#endif
#include <sys/stat.h>
#include <time.h>