From patchwork Tue Sep 10 21:11:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 3430 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=79.140.41.39; helo=v3-1039.vlinux.de; envelope-from=sven@narfation.org; receiver=b.a.t.m.a.n@lists.open-mesh.org Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id A8314602230 for ; Tue, 10 Sep 2013 23:19:08 +0200 (CEST) Received: from sven-desktop.home.narfation.org (drsd-4d05e637.pool.mediaWays.net [77.5.230.55]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 52478110173; Tue, 10 Sep 2013 23:12:53 +0200 (CEST) From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Tue, 10 Sep 2013 23:11:53 +0200 Message-Id: <1378847522-13776-3-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1378847522-13776-1-git-send-email-sven@narfation.org> References: <1378847522-13776-1-git-send-email-sven@narfation.org> Cc: Sven Eckelmann Subject: [B.A.T.M.A.N.] [PATCH 02/11] batctl: Fix inconsistent use of _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: Tue, 10 Sep 2013 21:19:08 -0000 Either all or no source file should define _GNU_SOURCE to avoid incompatible types or function declarations. Signed-off-by: Sven Eckelmann --- Makefile | 1 + bat-hosts.c | 1 - functions.c | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1961298..7926db3 100755 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ MANPAGE = man/batctl.8 # batctl flags and options CFLAGS += -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 #include #include 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 #include #include