aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 5e20def7..d3b1e5e6 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -21,6 +21,9 @@
#else
#define _DEFAULT_SOURCE
#endif
+#if defined(__APPLE__)
+#define _DARWIN_C_SOURCE
+#endif
#define _POSIX_C_SOURCE 200809L
#include <stdlib.h>