Software /
code /
prosody
Diff
util-src/pposix.c @ 9150:c1d5f52274cf
net, pposix, signal: Check for redefined defines, fix warnings.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 08 Aug 2018 09:27:34 +0200 |
parent | 9028:d4c2a3060e7e |
child | 9151:fee3933ff346 |
line wrap: on
line diff
--- a/util-src/pposix.c Wed Aug 08 08:19:01 2018 +0100 +++ b/util-src/pposix.c Wed Aug 08 09:27:34 2018 +0200 @@ -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>