aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorCheah Kok Cheong <thrust73@gmail.com>2016-11-27 11:28:26 -0500
committerMichal Marek <mmarek@suse.com>2016-11-29 08:03:14 -0500
commit0eb47346968f9b3852bbc56115f4feeecf23ea40 (patch)
tree49b6c91d2dafbc1f00a90ff49811e99c1ba754d9 /scripts
parent1001354ca34179f3db924eb66672442a173147dc (diff)
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 @@
5 * Derived from menuconfig. 5 * Derived from menuconfig.
6 * 6 *
7 */ 7 */
8#ifndef _GNU_SOURCE
8#define _GNU_SOURCE 9#define _GNU_SOURCE
10#endif
9#include <string.h> 11#include <string.h>
10#include <stdlib.h> 12#include <stdlib.h>
11 13