Repository : ssh://git@open-mesh.org/batctl
On branch : next
commit db34e02adf3f6421153ea4807108eb24796f2f7d Author: Sven Eckelmann sven@narfation.org Date: Tue Sep 10 23:11:53 2013 +0200
batctl: Fix inconsistent use of _GNU_SOURCE
Either all or no source file should define _GNU_SOURCE to avoid incompatible types or function declarations.
Signed-off-by: Sven Eckelmann sven@narfation.org Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
db34e02adf3f6421153ea4807108eb24796f2f7d Makefile | 1 + bat-hosts.c | 1 - functions.c | 1 - vis.c | 1 - 4 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/Makefile b/Makefile index 233f453..9e7c5be 100755 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ MANPAGE = man/batctl.8
# batctl flags and options CFLAGS += -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD +CPPFLAGS += -D_GNU_SOURCE LDLIBS += -lm
# disable verbose output diff --git a/bat-hosts.c b/bat-hosts.c index f0adb9c..ee862da 100644 --- a/bat-hosts.c +++ b/bat-hosts.c @@ -21,7 +21,6 @@
-#define _GNU_SOURCE #include <stdio.h> #include <stdint.h> #include <limits.h> diff --git a/functions.c b/functions.c index 0359287..2a2f392 100644 --- a/functions.c +++ b/functions.c @@ -20,7 +20,6 @@ */
-#define _GNU_SOURCE #include <netinet/ether.h> #include <arpa/inet.h> #include <sys/socket.h> diff --git a/vis.c b/vis.c index 33c7a7f..add93fd 100644 --- a/vis.c +++ b/vis.c @@ -19,7 +19,6 @@ * */
-#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <stdint.h>