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

[xen master] 9pfsd: allow building with old glibc



commit f4900d6d69b534a00a2d6f8981a3bd5dc22a7c0b
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Mar 5 15:33:47 2024 +0100
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Wed Mar 6 12:03:36 2024 +0000

    9pfsd: allow building with old glibc
    
    Neither pread() / pwrite() nor O_DIRECTORY are available from glibc
    2.11.3 headers without defining (e.g.) _GNU_SOURCE. Supplying the
    definition unconditionally shouldn't be a problem, seeing that various
    other tools/ components do so, too.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 tools/9pfsd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/9pfsd/Makefile b/tools/9pfsd/Makefile
index 50573121ed..b5f9703131 100644
--- a/tools/9pfsd/Makefile
+++ b/tools/9pfsd/Makefile
@@ -5,7 +5,7 @@
 XEN_ROOT = $(CURDIR)/../..
 include $(XEN_ROOT)/tools/Rules.mk
 
-CFLAGS += $(PTHREAD_CFLAGS)
+CFLAGS += $(PTHREAD_CFLAGS) -D_GNU_SOURCE
 LDFLAGS += $(PTHREAD_LDFLAGS)
 
 TARGETS := xen-9pfsd
--
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®.