[PATCH 6/6] LZ4: Include winsock.h when compiling for Windows

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

 



---
 common/canvas_base.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/common/canvas_base.c b/common/canvas_base.c
index fb35c4a..5867f3e 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -27,7 +27,11 @@
 #include <math.h>
 
 #ifdef USE_LZ4
+#ifdef _WIN32
+#include <winsock.h>
+#else
 #include <arpa/inet.h>
+#endif
 #include <lz4.h>
 #endif
 #include <spice/macros.h>
-- 
1.9.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]