Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
9149:d03f21729b2c | 9150:c1d5f52274cf |
---|---|
15 | 15 |
16 #define MODULE_VERSION "0.4.0" | 16 #define MODULE_VERSION "0.4.0" |
17 | 17 |
18 | 18 |
19 #if defined(__linux__) | 19 #if defined(__linux__) |
20 #ifndef _GNU_SOURCE | |
20 #define _GNU_SOURCE | 21 #define _GNU_SOURCE |
22 #endif | |
21 #else | 23 #else |
24 #ifndef _DEFAULT_SOURCE | |
22 #define _DEFAULT_SOURCE | 25 #define _DEFAULT_SOURCE |
23 #endif | 26 #endif |
27 #endif | |
28 #ifndef _POSIX_C_SOURCE | |
24 #define _POSIX_C_SOURCE 200809L | 29 #define _POSIX_C_SOURCE 200809L |
30 #endif | |
25 | 31 |
26 #include <stdlib.h> | 32 #include <stdlib.h> |
27 #include <math.h> | 33 #include <math.h> |
28 #include <unistd.h> | 34 #include <unistd.h> |
29 #include <libgen.h> | 35 #include <libgen.h> |