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(a)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>