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/aisimage.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tools/aisimage.c') diff --git a/tools/aisimage.c b/tools/aisimage.c index cd89145867..980bf2e1a7 100644 --- a/tools/aisimage.c +++ b/tools/aisimage.c @@ -5,9 +5,6 @@ * SPDX-License-Identifier: GPL-2.0+ */ -/* Required to obtain the getline prototype from stdio.h */ -#define _GNU_SOURCE - #include "mkimage.h" #include "aisimage.h" #include -- cgit v1.2.1