]> granicus.if.org Git - libevent/commitdiff
Fixed compilation of sample/le-proxy.c on win32
authorTrond Norbye <trond.norbye@gmail.com>
Sun, 1 Aug 2010 19:39:48 +0000 (21:39 +0200)
committerTrond Norbye <trond.norbye@gmail.com>
Sun, 1 Aug 2010 19:39:48 +0000 (21:39 +0200)
sample/le-proxy.c

index f33088eaaad61bf764f87608b34cad272e2eed48..59b85b23774f08d0763b62be6ddc435b2912764e 100644 (file)
 #include <string.h>
 #include <errno.h>
 
+#ifdef WIN32
+#include <winsock2.h>
+#include <ws2tcpip.h>
+#else
 #include <sys/socket.h>
 #include <netinet/in.h>
+#endif
 
 #include <event2/bufferevent_ssl.h>
 #include <event2/bufferevent.h>