[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] kconfig: ensure strndup() declaration is visible



commit 0f4fd0de7532c08bdd77a46f101e5ca1220cd163
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Jan 19 16:03:41 2021 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Jan 19 16:03:41 2021 +0100

    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 <jbeulich@xxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Acked-by: Doug Goldstein <cardoe@xxxxxxxxxx>
---
 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 <ctype.h>
 #include <stdarg.h>
 #include <stdio.h>
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.