summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-07-25 14:03:54 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-07-25 14:03:54 +0200
commita8304e288b4f24ca15b4f61dc18bea2c88c24e81 (patch)
tree02176c8c59089dd93074a4195c3f5dde3f94742d /src
parentfcc5bcad1add369b7b9e0a25cc63b88dfb83e5fe (diff)
downloadfastd-a8304e288b4f24ca15b4f61dc18bea2c88c24e81.tar
fastd-a8304e288b4f24ca15b4f61dc18bea2c88c24e81.zip
Move _GNU_SOURCE define to types.h
Diffstat (limited to 'src')
-rw-r--r--src/config.c2
-rw-r--r--src/config.y2
-rw-r--r--src/fastd.c2
-rw-r--r--src/handshake.c2
-rw-r--r--src/peer.c2
-rw-r--r--src/protocol_ec25519_fhmqvc.c2
-rw-r--r--src/resolve.c2
-rw-r--r--src/shell.c2
-rw-r--r--src/types.h2
9 files changed, 2 insertions, 16 deletions
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 <config.ll.h>
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 <fastd.h>
#include <arpa/inet.h>
}
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 <arpa/inet.h>
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 <config.h>
#include <version.h>