From: Jan Beulich Date: Tue, 19 Jan 2021 15:03:41 +0000 (+0100) Subject: kconfig: ensure strndup() declaration is visible X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0f4fd0de7532c08bdd77a46f101e5ca1220cd163;p=people%2Fdariof%2Fxen.git kconfig: ensure strndup() declaration is visible 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 Acked-by: Andrew Cooper Acked-by: Doug Goldstein --- diff --git a/xen/tools/kconfig/parser.y b/xen/tools/kconfig/parser.y index 60936c7686..822fc89fc8 100644 --- a/xen/tools/kconfig/parser.y +++ b/xen/tools/kconfig/parser.y @@ -4,6 +4,7 @@ */ %{ +#define _GNU_SOURCE #include #include #include