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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

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>


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]