libxl: include sys/ioctl.h
PATCH 1/1 libxl: include sys/ioctl.h
This is a requirement for the code in libxl_remus_disk_drbd.c that uses the ioctl syscall. Fixes the following error when building on FreeBSD:
libxl_remus_disk_drbd.c: In function 'drbd_postsuspend':
libxl_remus_disk_drbd.c:197:9: error: implicit declaration of function 'ioctl' [-Werror=implicit-function-declaration]
--- tools/libxl/libxl_internal.h | 1 + 1 file changed, 1 insertion(+)
tools/libxl/libxl_internal.h +1 -0
@@ -44,6 +44,7 @@#include <sys/wait.h> #include <sys/socket.h> #include <sys/file.h> +#include <sys/ioctl.h> #include <xenstore.h> #include <xenctrl.h>
Signature · 7 lines
1.9.3 (Apple Git-50) _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Roger Pau Monne writes ("[PATCH for-xen-4.5] libxl: include sys/ioctl.h"):
Quoted 5 lines
This is a requirement for the code in
libxl_remus_disk_drbd.cthat uses the ioctl syscall. Fixes the following error when building on FreeBSD:
libxl_remus_disk_drbd.c: In function 'drbd_postsuspend':
libxl_remus_disk_drbd.c:197:9: error: implicit declaration of function 'ioctl' [-Werror=implicit-function-declaration]
Quoted 8 lines · Ian Jackson
Roger Pau Monne writes ("[PATCH for-xen-4.5] libxl: include
sys/ioctl.h"):Quoted 5 lines
This is a requirement for the code in
libxl_remus_disk_drbd.cthat uses the ioctl syscall. Fixes the following error when building on FreeBSD:
libxl_remus_disk_drbd.c: In function 'drbd_postsuspend':
libxl_remus_disk_drbd.c:197:9: error: implicit declaration of function 'ioctl' [-Werror=implicit-function-declaration]Acked-by Ian Jackson <[email protected]>
Likewise + applied.