A number of small build fixes found while looking at mingw support.
[m6w6/libmemcached] / clients / memaslap.c
index 8053775cb3bb6e4565636367c9290ac9a1504401..764707b5ab2b88b4a6e2084f64828a158fdeaada 100644 (file)
 #include <stdlib.h>
 #include <getopt.h>
 #include <limits.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