summaryrefslogtreecommitdiff
path: root/includes.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-03-22 12:51:09 +1100
committerDarren Tucker <dtucker@zip.com.au>2013-03-22 12:51:09 +1100
commit221b4b2436ac78a65c3b775c25ccd396a1fed208 (patch)
tree430402b1d4b760da62f9d16a066c68bd94d54d14 /includes.h
parentc8a0f27c6d761d1335d13ed84d773e9ddf1d95c8 (diff)
- (dtucker) [includes.h] Check if _GNU_SOURCE is already defined before
defining it again. Prevents warnings if someone, eg, sets it in CFLAGS.
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes.h b/includes.h
index 3e206c899..07bcd89f2 100644
--- a/includes.h
+++ b/includes.h
@@ -18,7 +18,9 @@
18 18
19#include "config.h" 19#include "config.h"
20 20
21#ifndef _GNU_SOURCE
21#define _GNU_SOURCE /* activate extra prototypes for glibc */ 22#define _GNU_SOURCE /* activate extra prototypes for glibc */
23#endif
22 24
23#include <sys/types.h> 25#include <sys/types.h>
24#include <sys/socket.h> /* For CMSG_* */ 26#include <sys/socket.h> /* For CMSG_* */