Numerous fixes related to compiling for mingw
[awesomized/libmemcached] / libmemcached / csl / server.h
index 92f7ed561b0840f11e4d03b48369d02539e1a0ca..21915d64624b64db6b3b114f2bc616a879f0a34a 100644 (file)
 #pragma once
 
 #include <cstdlib>
-#include <arpa/inet.h>
+
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
 
 struct server_t
 {
-  in_port_t port;
-  uint32_t weight;
   const char *c_str;
   size_t size;
+  in_port_t port;
+  uint32_t weight;
 };