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>
This commit is contained in:
Cheah Kok Cheong 2016-11-28 00:28:26 +08:00 committed by Michal Marek
parent 1001354ca3
commit 0eb4734696
1 changed files with 2 additions and 0 deletions

View File

@ -5,7 +5,9 @@
* Derived from menuconfig.
*
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <string.h>
#include <stdlib.h>