From b3bfb2a1a7ffc190dc37905b073da8d1d3b054ba Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sun, 1 Mar 2020 15:41:55 +0100 Subject: util/kconfig: Silence warning about _GNU_SOURCE For some reason, this symbol gets redefined, which causes a warning. Hide the warning by checking whether it is already defined. Change-Id: I70ffc9a799e0b536d6aba7d00f828bd6d915d94c Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/39183 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- util/kconfig/nconf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util/kconfig/nconf.c') diff --git a/util/kconfig/nconf.c b/util/kconfig/nconf.c index 905dcd11bd..42ea494f6b 100644 --- a/util/kconfig/nconf.c +++ b/util/kconfig/nconf.c @@ -5,7 +5,9 @@ * Derived from menuconfig. * */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include -- cgit v1.2.3