diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-08 09:27:34 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-08 09:27:34 +0200 |
commit | bae1d20e54efc3eb98c706a1192321e66d35ccac (patch) | |
tree | 30c75d2a778b4fea03969a57f406e0f339ec21ea /util-src/pposix.c | |
parent | 2f6ae2f1fc422bfc04f66c939e708bc2aea82a27 (diff) | |
download | prosody-bae1d20e54efc3eb98c706a1192321e66d35ccac.tar.gz prosody-bae1d20e54efc3eb98c706a1192321e66d35ccac.zip |
net, pposix, signal: Check for redefined defines, fix warnings.
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r-- | util-src/pposix.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c index 215c45c3..656bda07 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -17,11 +17,17 @@ #if defined(__linux__) +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #else +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE #endif +#endif +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L +#endif #include <stdlib.h> #include <math.h> |