Mercurial > prosody-hg
diff util-src/pposix.c @ 10411:db2a06b9ff98
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 16 Nov 2019 16:52:31 +0100 |
| parents | 659b577f280c 861d510e1876 |
| children | 94cacf9fd0ae |
line wrap: on
line diff
--- a/util-src/pposix.c Sat Nov 16 16:45:33 2019 +0100 +++ b/util-src/pposix.c Sat Nov 16 16:52:31 2019 +0100 @@ -25,14 +25,18 @@ #define _DEFAULT_SOURCE #endif #endif + #if defined(__APPLE__) #ifndef _DARWIN_C_SOURCE #define _DARWIN_C_SOURCE #endif #endif + +#if ! defined(__FreeBSD__) #ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L #endif +#endif #include <stdlib.h> #include <math.h>
