Fix for Openbsd
authorBrian Aker <brian@tangent.org>
Tue, 15 Feb 2011 16:52:51 +0000 (08:52 -0800)
committerBrian Aker <brian@tangent.org>
Tue, 15 Feb 2011 16:52:51 +0000 (08:52 -0800)
clients/ms_conn.c
libmemcached/platform.h

index d7cd2de06c5b4c813e1789151e949431868b6875..ae3145f5ae170c412b998e22d6f6b7d23ee7781e 100644 (file)
@@ -18,6 +18,7 @@
 #include <event.h>
 #include <fcntl.h>
 #include <netinet/tcp.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
index 9eafbb144d0dcd6d562028d00f24e010fa5c8e62..e7511cad0d67c6f8fa73d9b8843450bb67ea606c 100644 (file)
@@ -20,11 +20,11 @@ typedef SOCKET memcached_socket_t;
 #else
 typedef int memcached_socket_t;
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <sys/un.h>
 #include <netinet/tcp.h>
-#include <netinet/in.h>
 
 #endif /* WIN32 */