From a8304e288b4f24ca15b4f61dc18bea2c88c24e81 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 25 Jul 2013 14:03:54 +0200 Subject: Move _GNU_SOURCE define to types.h --- src/config.c | 2 -- src/config.y | 2 -- src/fastd.c | 2 -- src/handshake.c | 2 -- src/peer.c | 2 -- src/protocol_ec25519_fhmqvc.c | 2 -- src/resolve.c | 2 -- src/shell.c | 2 -- src/types.h | 2 ++ 9 files changed, 2 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/config.c b/src/config.c index 50cf5bb..ec04726 100644 --- a/src/config.c +++ b/src/config.c @@ -24,8 +24,6 @@ */ -#define _GNU_SOURCE - #include "fastd.h" #include "peer.h" #include diff --git a/src/config.y b/src/config.y index e0fa412..75f2019 100644 --- a/src/config.y +++ b/src/config.y @@ -34,8 +34,6 @@ %parse-param {int depth} %code requires { - #define _GNU_SOURCE - #include #include } diff --git a/src/fastd.c b/src/fastd.c index 63e77c5..b0901f9 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -24,8 +24,6 @@ */ -#define _GNU_SOURCE - #include "fastd.h" #include "crypto.h" #include "handshake.h" diff --git a/src/handshake.c b/src/handshake.c index 240e24a..b58745c 100644 --- a/src/handshake.c +++ b/src/handshake.c @@ -24,8 +24,6 @@ */ -#define _GNU_SOURCE - #include "handshake.h" #include "packet.h" #include "peer.h" diff --git a/src/peer.c b/src/peer.c index 9b15332..fd0b739 100644 --- a/src/peer.c +++ b/src/peer.c @@ -24,8 +24,6 @@ */ -#define _GNU_SOURCE - #include "peer.h" #include "task.h" diff --git a/src/protocol_ec25519_fhmqvc.c b/src/protocol_ec25519_fhmqvc.c index c9baba4..01d2103 100644 --- a/src/protocol_ec25519_fhmqvc.c +++ b/src/protocol_ec25519_fhmqvc.c @@ -24,8 +24,6 @@ */ -#define _GNU_SOURCE - #include "fastd.h" #include "handshake.h" #include "peer.h" diff --git a/src/resolve.c b/src/resolve.c index 8cc5f13..fea0cff 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -24,8 +24,6 @@ */ -#define _GNU_SOURCE - #include "fastd.h" #include "peer.h" diff --git a/src/shell.c b/src/shell.c index 656c7cc..e8e1cf8 100644 --- a/src/shell.c +++ b/src/shell.c @@ -24,8 +24,6 @@ */ -#define _GNU_SOURCE - #include "peer.h" #include diff --git a/src/types.h b/src/types.h index b1026b5..abda1bc 100644 --- a/src/types.h +++ b/src/types.h @@ -33,6 +33,8 @@ #ifndef _FASTD_TYPES_H_ #define _FASTD_TYPES_H_ +#define _GNU_SOURCE + #include #include -- cgit v1.2.3