Skip to contentSkip to conversation

kconfig: ensure strndup() declaration is visible

PATCH In review Jan Beulich 3 participants 4 messages Jan 11, 2021 – Jan 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
xen/tools/kconfig/parser.y +1 -0
@@ -4,6 +4,7 @@
  */
 %{
 
+#define _GNU_SOURCE
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdio.h>
#2 lore raw

Ping: [PATCH] kconfig: ensure strndup() declaration is visible

In reply to Jan Beulich

Doug,

Quoted 5 lines · Jan Beulich

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")

I've got an ack from Andrew, but strictly speaking I need yours aiui. I'll wait some more, but will commit this perhaps by mid of the week.

Jan

#3 lore raw
In reply to Jan Beulich
Quoted 10 lines · Jan Beulich

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")

xen/tools/kconfig/parser.y line 10

Quoted 7 lines
xen/tools/kconfig/parser.y +1 -0
@@ -4,6 +4,7 @@
   */
  %{
 
+#define _GNU_SOURCE
  #include <ctype.h>
  #include <stdarg.h>
  #include <stdio.h>