aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdeps/trystatim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdeps/trystatim.c')
-rw-r--r--src/sysdeps/trystatim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysdeps/trystatim.c b/src/sysdeps/trystatim.c
index 88f6a95..3df38b8 100644
--- a/src/sysdeps/trystatim.c
+++ b/src/sysdeps/trystatim.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>