aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/net.c
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-08 09:27:34 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-08 09:27:34 +0200
commit9d9392a941a76d0b3f8c9bd471bd40a306bd156b (patch)
tree30c75d2a778b4fea03969a57f406e0f339ec21ea /util-src/net.c
parent10fe4432f4557fe4a12db3d11cf7e292fd74f34d (diff)
downloadprosody-9d9392a941a76d0b3f8c9bd471bd40a306bd156b.tar.gz
prosody-9d9392a941a76d0b3f8c9bd471bd40a306bd156b.zip
net, pposix, signal: Check for redefined defines, fix warnings.
Diffstat (limited to 'util-src/net.c')
-rw-r--r--util-src/net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-src/net.c b/util-src/net.c
index 9ff01a71..5f706d81 100644
--- a/util-src/net.c
+++ b/util-src/net.c
@@ -9,7 +9,10 @@
--
*/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
+
#include <stddef.h>
#include <string.h>
#include <errno.h>