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/mkenvimage.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tools/mkenvimage.c') diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index f685ff2e30..bbd3041e36 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@ -9,9 +9,6 @@ * SPDX-License-Identifier: GPL-2.0+ */ -/* We want the GNU version of basename() */ -#define _GNU_SOURCE - #include #include #include -- cgit