[Libguestfs] [PATCH] lib: include <sys/socket.h> for accept4

Pino Toscano ptoscano at redhat.com
Mon Oct 5 14:10:47 UTC 2015


Apparently implicitly pulled by something else on Linux, it is not when
building on e.g. FreeBSD.

This reverts the change to this file of
commit 3b17152ec399acb35b23331d2c3b4f424a68824a.
---
 src/conn-socket.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conn-socket.c b/src/conn-socket.c
index a935cc4..05177ca 100644
--- a/src/conn-socket.c
+++ b/src/conn-socket.c
@@ -28,6 +28,7 @@
 #include <errno.h>
 #include <poll.h>
 #include <sys/stat.h>
+#include <sys/socket.h>  /* accept4 */
 #include <sys/types.h>
 #include <assert.h>
 #include <libintl.h>
-- 
2.1.0




More information about the Libguestfs mailing list