From 0f4fd0de7532c08bdd77a46f101e5ca1220cd163 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 19 Jan 2021 16:03:41 +0100 Subject: [PATCH] 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 --- xen/tools/kconfig/parser.y | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5