tools/libxc: Fix build error when using xc_version_len
authorOlaf Hering <olaf@aepfle.de>
Thu, 31 Mar 2016 11:25:30 +0000 (13:25 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 1 Apr 2016 13:47:41 +0000 (14:47 +0100)
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")

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reported-by: Olaf Hering <olaf@aepfle.de>
Reported-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/include/xenctrl.h

index 5c519c3b9a782f95e02b9d21bc1a5a6dece75d4b..13d57548b618278d7c9b011aa8fcb9a2c46a5d60 100644 (file)
@@ -27,6 +27,7 @@
 #define __XEN_TOOLS__ 1
 #endif
 
+#include <unistd.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>