Skip to contentSkip to conversation

tools/libxc: Fix build error when using xc_evtchn_compat.c

PATCH Superseded Olaf Hering 2 participants 2 messages Mar 31, 2016 – Apr 1, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/libxc: Fix build error when using xc_evtchn_compat.c

Tools fails to build with gcc 4.5, it does not provide ssize_t.

Fixes d275ec9 ("libxc/libxl/python/xenstat/ocaml: Use new XEN_VERSION hypercall")

---
 tools/libxc/include/xenctrl.h | 1 +
 1 file changed, 1 insertion(+)
tools/libxc/include/xenctrl.h +1 -0
index a9e4dc1..2140702 100644
@@ -27,6 +27,7 @@
 #define __XEN_TOOLS__ 1
 #endif
 
+#include <unistd.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Olaf Hering

Tools fails to build with gcc 4.5, it does not provide ssize_t.

Fixes d275ec9 ("libxc/libxl/python/xenstat/ocaml: Use new XEN_VERSION hypercall")

Quoted 9 lines
---
 tools/libxc/include/xenctrl.h | 1 +
 1 file changed, 1 insertion(+)
tools/libxc/include/xenctrl.h +0 -0
index a9e4dc1..2140702 100644

tools/libxc/include/xenctrl.h line 33

Quoted 7 lines
tools/libxc/include/xenctrl.h +1 -0
@@ -27,6 +27,7 @@
 #define __XEN_TOOLS__ 1
 #endif
 
+#include <unistd.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel