summaryrefslogtreecommitdiff
path: root/util/kconfig/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/kconfig/regex.c')
-rw-r--r--util/kconfig/regex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/kconfig/regex.c b/util/kconfig/regex.c
index a6d947fbd0..d0e1d7b2f5 100644
--- a/util/kconfig/regex.c
+++ b/util/kconfig/regex.c
@@ -24,7 +24,9 @@
#pragma alloca
#endif
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
/* We need this for `regex.h', and perhaps for the Emacs include files. */
#include <sys/types.h>