From: Cheah Kok Cheong Date: Sun, 27 Nov 2016 16:28:26 +0000 (+0800) Subject: Scripts: kconfig: nconf: fix _GNU_SOURCE redefined warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0eb47346968f9b3852bbc56115f4feeecf23ea40;p=linux.git Scripts: kconfig: nconf: fix _GNU_SOURCE redefined warning Fix below warning when make nconfig is run initially or after make clean. HOSTCC scripts/kconfig/nconf.o scripts/kconfig/nconf.c:8:0: warning: "_GNU_SOURCE" redefined #define _GNU_SOURCE ^ :0:0: note: this is the location of the previous definition Signed-off-by: Cheah Kok Cheong Signed-off-by: Michal Marek --- diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index d42d534a66cd7..a9bc5334a478d 100644 --- a/scripts/kconfig/nconf.c +++ b/scripts/kconfig/nconf.c @@ -5,7 +5,9 @@ * Derived from menuconfig. * */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include