summaryrefslogtreecommitdiffstats
path: root/tools/mkenvimage.c
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2013-07-30 15:26:11 -0700
committerTom Rini <trini@ti.com>2013-08-16 13:45:15 -0400
commit2db1c3fc673c2ddfa1f8dbb41326d9763ea0ae64 (patch)
tree2587036449c61a57ba632930dbb9bf632fcf05ea /tools/mkenvimage.c
parent1fd1e2f69fdfb99bac792beed8b208d451acb598 (diff)
downloadblackbird-obmc-uboot-2db1c3fc673c2ddfa1f8dbb41326d9763ea0ae64.tar.gz
blackbird-obmc-uboot-2db1c3fc673c2ddfa1f8dbb41326d9763ea0ae64.zip
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/mkenvimage.c')
-rw-r--r--tools/mkenvimage.c3
1 files changed, 0 insertions, 3 deletions
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 <errno.h>
#include <fcntl.h>
#include <stdio.h>
OpenPOWER on IntegriCloud