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

[xen staging] xl/parse: mark as GNU source



commit c7e442938e0237e5af17bcc87c81bcbf41e4631a
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Mon May 18 08:59:40 2026 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon May 18 08:59:40 2026 +0200

    xl/parse: mark as GNU source
    
    Very old glibc (2.4 in the observed case) declares strndup() only when
    _GNU_SOURCE is defined.
    
    Fixes: ad860c6454ba ("tools/xl: add xl commands for xenstore quota 
operations")
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Acked-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
 tools/xl/xl_parse.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c
index 48c72dce9c..0ccece3e8a 100644
--- a/tools/xl/xl_parse.c
+++ b/tools/xl/xl_parse.c
@@ -12,6 +12,8 @@
  * GNU Lesser General Public License for more details.
  */
 
+#define _GNU_SOURCE
+
 #include <ctype.h>
 #include <inttypes.h>
 #include <limits.h>
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

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