diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-08 11:46:02 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-08 11:46:02 +0200 |
commit | 530a9f9c8ea8a019f581df9dfc46430cba9ad938 (patch) | |
tree | 0ed0d09d872d348d19d7990e58c35db950f279a7 /util-src/pposix.c | |
parent | b78f1d3da1d7321240d92f25a239033bbc6fa2d1 (diff) | |
download | prosody-530a9f9c8ea8a019f581df9dfc46430cba9ad938.tar.gz prosody-530a9f9c8ea8a019f581df9dfc46430cba9ad938.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.c | 3 |
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> |