fix #136: libmemcachedutil is underlinked
[awesomized/libmemcached] / test / timeout.c
index e3c59a3a691ec521e4fa5efc31987a6657f896ad..000aa12eb3f330cfdadbe01bcd6bf42aa60e851f 100644 (file)
@@ -1,9 +1,17 @@
+#include "mem_config.h"
 #include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <memory.h>
-#include <arpa/inet.h>
-#include <sys/socket.h>
+#if HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
 
 // $0 -u nobody -p <port>
 int main(int argc, char **argv) {