Fixes from merge of libtest from Gearman.
[awesomized/libmemcached] / clients / ms_conn.c
index b4d5f673d11df8ce616ec7494f1c3a4dc49faf76..2a65f6cfa423cf83951fba2c8e20db67789243ab 100644 (file)
 #include <netinet/tcp.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#if TIME_WITH_SYS_TIME
+
+#if defined(HAVE_SYS_TIME_H)
 # include <sys/time.h>
+#endif
+
+#if defined(HAVE_TIME_H)
 # include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
 #endif
+
 #include "ms_setting.h"
 #include "ms_thread.h"
 #include "ms_atomic.h"