[libvirt] [PATCH 12/17] include netinet etc #ifndef HAVE_WINSOCK2_H

Jim Meyering jim at meyering.net
Tue Oct 28 11:21:29 UTC 2008


From: Jim Meyering <meyering at redhat.com>

---
 src/remote_internal.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/remote_internal.c b/src/remote_internal.c
index 08d42a9..703ebf8 100644
--- a/src/remote_internal.c
+++ b/src/remote_internal.c
@@ -36,6 +36,13 @@
 #include <sys/stat.h>
 #include <fcntl.h>

+#ifndef HAVE_WINSOCK2_H		/* Unix & Cygwin. */
+# include <sys/un.h>
+# include <net/if.h>
+# include <netinet/in.h>
+# include <netinet/tcp.h>
+#endif
+
 #ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
-- 
1.6.0.3.756.gb776d




More information about the libvir-list mailing list