Skip to content

Commit 0eb4734

Browse files
Cheah Kok CheongMichal Marek
authored andcommitted
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>
1 parent 1001354 commit 0eb4734

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎scripts/kconfig/nconf.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
* Derived from menuconfig.
66
*
77
*/
8+
#ifndef _GNU_SOURCE
89
#define _GNU_SOURCE
10+
#endif
911
#include <string.h>
1012
#include <stdlib.h>
1113

0 commit comments

Comments
 (0)