Skip to contentSkip to conversation

libxl: include sys/ioctl.h

PATCH In review Roger Pau Monne 3 participants 3 messages Oct 10, 2014 – Oct 14, 2014

lore
Share & tools
lore
#0 lore raw

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]

Cc Lai Jiangshan <[email protected]>
Cc Wen Congyang <[email protected]>
Cc Yang Hongyang <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Wei Liu <[email protected]>
---
 tools/libxl/libxl_internal.h | 1 +
 1 file changed, 1 insertion(+)
tools/libxl/libxl_internal.h +1 -0
index 83bef59..7ed601e 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw

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.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]

#2 lore raw
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.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]

Likewise + applied.