aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
Diffstat (limited to 'util-src')
-rw-r--r--util-src/pposix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index 4ce55075..257ab0e9 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -25,6 +25,9 @@
#define _DEFAULT_SOURCE
#endif
#endif
+#if defined(__APPLE__)
+#define _DARWIN_C_SOURCE
+#endif
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif