From 2db1c3fc673c2ddfa1f8dbb41326d9763ea0ae64 Mon Sep 17 00:00:00 2001 From: York Sun Date: Tue, 30 Jul 2013 15:26:11 -0700 Subject: tools/Makefile: Move _GNU_SOURCE to Makefile Commit 669dfc2e adds libfdt_env.h to HOSTCPPFLAGS. It causes stdio.h to be included before _GNU_SOURCE is defined in C files. On some old hosts some prototypes are protected by #ifdef __USE_GNU, which is set when _GNU_SOURCE is defined. Signed-off-by: York Sun Acked-by: Simon Glass --- tools/kwbimage.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tools/kwbimage.c') diff --git a/tools/kwbimage.c b/tools/kwbimage.c index d08e49892d5..1df6b2051e8 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -6,9 +6,6 @@ * SPDX-License-Identifier: GPL-2.0+ */ -/* Required to obtain the getline prototype from stdio.h */ -#define _GNU_SOURCE - #include "mkimage.h" #include #include "kwbimage.h" -- cgit v1.2.3