tools: add missing header for xenctrl.h
authorChanglong Xie <xiecl.fnst@cn.fujitsu.com>
Fri, 1 Apr 2016 01:35:52 +0000 (09:35 +0800)
committerChanglong Xie <xiecl.fnst@cn.fujitsu.com>
Fri, 1 Apr 2016 03:07:28 +0000 (11:07 +0800)
Commit d275ec9c introduce ssize_t but not include relevant header,
it will cause compile errors just like below:

./include/xenctrl.h:1485: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xc_version_len'

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
tools/libxc/include/xenctrl.h

index a9e4dc1540ae26ca7c5045ab305605938f60f40e..fb5c26c4a78246f8ec5d8df48888b00299d0ea74 100644 (file)
@@ -31,6 +31,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdbool.h>
+#include <unistd.h>
 #include <xen/xen.h>
 #include <xen/domctl.h>
 #include <xen/physdev.h>