diff options
author | York Sun <yorksun@freescale.com> | 2013-07-30 15:26:11 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-08-16 13:45:15 -0400 |
commit | 2db1c3fc673c2ddfa1f8dbb41326d9763ea0ae64 (patch) | |
tree | 2587036449c61a57ba632930dbb9bf632fcf05ea /tools/aisimage.c | |
parent | 1fd1e2f69fdfb99bac792beed8b208d451acb598 (diff) | |
download | u-boot-imx-2db1c3fc673c2ddfa1f8dbb41326d9763ea0ae64.zip u-boot-imx-2db1c3fc673c2ddfa1f8dbb41326d9763ea0ae64.tar.gz u-boot-imx-2db1c3fc673c2ddfa1f8dbb41326d9763ea0ae64.tar.bz2 |
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 <yorksun@freescale.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/aisimage.c')
-rw-r--r-- | tools/aisimage.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/aisimage.c b/tools/aisimage.c index cd89145..980bf2e 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 <image.h> |