summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorCheah Kok Cheong <thrust73@gmail.com>2016-11-27 17:28:26 +0100
committerMichal Marek <mmarek@suse.com>2016-11-29 14:03:14 +0100
commit0eb47346968f9b3852bbc56115f4feeecf23ea40 (patch)
tree49b6c91d2dafbc1f00a90ff49811e99c1ba754d9 /scripts
parentLinux 4.9-rc1 (diff)
downloadlinux-0eb47346968f9b3852bbc56115f4feeecf23ea40.tar.xz
linux-0eb47346968f9b3852bbc56115f4feeecf23ea40.zip
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 ^ <command-line>:0:0: note: this is the location of the previous definition Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/nconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index d42d534a66cd..a9bc5334a478 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 <string.h>
#include <stdlib.h>