[libvirt] cygwin: #include netinet/inet.h -- needed only on cygwin

Stefan Berger stefanb at linux.vnet.ibm.com
Tue Aug 17 16:14:47 UTC 2010


  When doing './autogen.sh --with-sasl --with-libvirtd=no' on cygwin, I 
needed to #include netinet/in.h for a successful build. Now 
authentication using SASL works.

Signed-off-by: Stefan Berger <stefanb at us.ibm.com>

diff --git a/src/remote/qemu_protocol.h b/src/remote/qemu_protocol.h
index b822187..8d806fc 100644
--- a/src/remote/qemu_protocol.h
+++ b/src/remote/qemu_protocol.h
@@ -6,6 +6,9 @@
  #ifndef _RP_QEMU_H_RPCGEN
  #define _RP_QEMU_H_RPCGEN

+#ifdef __CYGWIN__
+# include <netinet/in.h>
+#endif
  #include <rpc/rpc.h>


diff --git a/src/remote/remote_protocol.h b/src/remote/remote_protocol.h
index afe9287..113818d 100644
--- a/src/remote/remote_protocol.h
+++ b/src/remote/remote_protocol.h
@@ -6,6 +6,9 @@
  #ifndef _RP_H_RPCGEN
  #define _RP_H_RPCGEN

+#ifdef __CYGWIN__
+# include <netinet/in.h>
+#endif
  #include <rpc/rpc.h>





More information about the libvir-list mailing list