From patchwork Thu Mar 21 15:16:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: elektra X-Patchwork-Id: 2789 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by open-mesh.org (Postfix) with ESMTP id 42C7160073B for ; Thu, 21 Mar 2013 16:16:37 +0100 (CET) Received: from mailout-de.gmx.net ([10.1.76.32]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MBptp-1URjef07vz-00ApQs for ; Thu, 21 Mar 2013 16:16:34 +0100 Received: (qmail invoked by alias); 21 Mar 2013 15:16:33 -0000 Received: from i5882A2CD.versanet.de (EHLO juggernaut) [88.130.162.205] by mail.gmx.net (mp032) with SMTP; 21 Mar 2013 16:16:33 +0100 X-Authenticated: #2746672 X-Provags-ID: V01U2FsdGVkX19dI1MbJFFdi+Sr1jVCN146yLBdMMnkvZIoWkLz79 LMahUMmcHm2yfk Date: Thu, 21 Mar 2013 16:16:29 +0100 From: Elektra To: b.a.t.m.a.n@lists.open-mesh.org Message-Id: <20130321161629.3e471711506fc51ccac9c2fd@gmx.net> In-Reply-To: <3212285.GF4Btbehao@sven-desktop> References: <20130320175154.GT41481@l04.local> <3212285.GF4Btbehao@sven-desktop> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Y-GMX-Trusted: 0 Subject: [B.A.T.M.A.N.] [PATCH] batmand: Either all or no source file should #define _GNU_SOURCE. X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Mar 2013 15:16:37 -0000 Subject: [PATCH] Either all or no source file should #define _GNU_SOURCE. Thanks to Sven Eckelmann and Michael Tautschnig for reporting and fixes. --- Makefile | 1 + linux/route.c | 1 - posix/unix_socket.c | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe1f094..ce1e198 100755 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ LINUX_OBJ = linux/route.o linux/tun.o linux/kernel.o ifeq ($(UNAME),Linux) OS_OBJ = $(LINUX_OBJ) $(POSIX_OBJ) +CPPFLAGS += -D_GNU_SOURCE endif OBJ = batman.o originator.o schedule.o list-batman.o allocate.o bitarray.o hash.o profile.o ring_buffer.o hna.o $(OS_OBJ) diff --git a/linux/route.c b/linux/route.c index 119ebb2..bceac95 100644 --- a/linux/route.c +++ b/linux/route.c @@ -21,7 +21,6 @@ -#define _GNU_SOURCE #include #include /* inet_ntop() */ #include diff --git a/posix/unix_socket.c b/posix/unix_socket.c index 5bed217..02a0a3a 100644 --- a/posix/unix_socket.c +++ b/posix/unix_socket.c @@ -21,7 +21,6 @@ -#define _GNU_SOURCE #include #include #include