summaryrefslogtreecommitdiff
diff options
authorEdgar E. Iglesias <[email protected]>2012-06-26 22:06:05 +0200
committerEdgar E. Iglesias <[email protected]>2012-06-26 22:11:44 +0200
commit1aec9e29b3c4a37e38c4159fd5c34ffd1029f222 (patch)
tree7d570c46facdabe3e055f479c4fca65d08dc9c76
parentd9319a8ba336153172ae8b0ff37b2d676fe6c450 (diff)
downloadmdhcp6-master.tar.gz
Avoid redefined macro CPP warningsHEADmaster
Signed-off-by: Edgar E. Iglesias <[email protected]>
-rw-r--r--src/dhcpv6.c5
-rw-r--r--src/net_bsdsock.c5
-rw-r--r--src/notify.c5
-rw-r--r--testsuite/net_instr.c5
-rw-r--r--testsuite/notify_instr.c5
5 files changed, 15 insertions, 10 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 63d9d18..a1f3df2 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -27,6 +27,9 @@
* Authors: Edgar E. Iglesias <[email protected]>
*/
+#define __GNU_SOURCE
+#define __USE_GNU
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -40,8 +43,6 @@
#include <stdio.h>
#include <stdlib.h>
-#define __GNU_SOURCE
-#define __USE_GNU
#include <string.h>
#include <errno.h>
#include <unistd.h>
diff --git a/src/net_bsdsock.c b/src/net_bsdsock.c
index b16c47b..28d6870 100644
--- a/src/net_bsdsock.c
+++ b/src/net_bsdsock.c
@@ -22,6 +22,9 @@
* Authors: Edgar E. Iglesias <[email protected]>
*/
+#define __GNU_SOURCE
+#define __USE_GNU
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -35,8 +38,6 @@
#include <stdio.h>
#include <stdlib.h>
-#define __GNU_SOURCE
-#define __USE_GNU
#include <string.h>
#include <errno.h>
#include <unistd.h>
diff --git a/src/notify.c b/src/notify.c
index cc56c91..22fe817 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -22,6 +22,9 @@
* Authors: Edgar E. Iglesias <[email protected]>
*/
+#define __GNU_SOURCE
+#define __USE_GNU
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -35,8 +38,6 @@
#include <stdio.h>
#include <stdlib.h>
-#define __GNU_SOURCE
-#define __USE_GNU
#include <string.h>
#include <errno.h>
#include <unistd.h>
diff --git a/testsuite/net_instr.c b/testsuite/net_instr.c
index f18bdfa..e8fcbcf 100644
--- a/testsuite/net_instr.c
+++ b/testsuite/net_instr.c
@@ -22,6 +22,9 @@
* Authors: Edgar E. Iglesias <[email protected]>
*/
+#define __GNU_SOURCE
+#define __USE_GNU
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -35,8 +38,6 @@
#include <stdio.h>
#include <stdlib.h>
-#define __GNU_SOURCE
-#define __USE_GNU
#include <string.h>
#include <errno.h>
#include <unistd.h>
diff --git a/testsuite/notify_instr.c b/testsuite/notify_instr.c
index 477a2ef..871d254 100644
--- a/testsuite/notify_instr.c
+++ b/testsuite/notify_instr.c
@@ -22,6 +22,9 @@
* Authors: Edgar E. Iglesias <[email protected]>
*/
+#define __GNU_SOURCE
+#define __USE_GNU
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -35,8 +38,6 @@
#include <stdio.h>
#include <stdlib.h>
-#define __GNU_SOURCE
-#define __USE_GNU
#include <string.h>
#include <errno.h>
#include <unistd.h>