]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
kconfig: ensure strndup() declaration is visible
authorJan Beulich <jbeulich@suse.com>
Tue, 19 Jan 2021 15:03:41 +0000 (16:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 19 Jan 2021 15:03:41 +0000 (16:03 +0100)
Its guard was updated such that it is visible by default when POSIX 2008
was adopted by glibc. It's not visible by default on older glibc.

Fixes: f80fe2b34f08 ("xen: Update Kconfig to Linux v5.4")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
xen/tools/kconfig/parser.y

index 60936c76865bfb07e6fb1f2767bc1514e69a6169..822fc89fc8031ffb5a906868720d8f5a80eb5d20 100644 (file)
@@ -4,6 +4,7 @@
  */
 %{
 
+#define _GNU_SOURCE
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdio.h>