aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-08 11:46:02 +0200
committerKim Alvefur <zash@zash.se>2018-09-08 11:46:02 +0200
commite6797cc6b2ae75965c402eb13f3159ed3337f475 (patch)
tree0ed0d09d872d348d19d7990e58c35db950f279a7 /util-src/pposix.c
parent4d3ba7e40775e933a70283cd97c385f4c88038cb (diff)
downloadprosody-e6797cc6b2ae75965c402eb13f3159ed3337f475.tar.gz
prosody-e6797cc6b2ae75965c402eb13f3159ed3337f475.zip
util.pposix: Fix or silence a warning on OS X (#1202)
Diffstat (limited to 'util-src/pposix.c')
-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>