Fixed build on CentOS.
[m6w6/libmemcached] / clients / ms_task.c
index bcd2757c0b0453d6a944b0d59344751a7aa35a5c..5fbd7d1302c9ffb0d1e7b41c838596e89bcf3091 100644 (file)
 #include "config.h"
 
 #include <inttypes.h>
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+#  include <sys/time.h>
+# else
+#  include <time.h>
+# endif
+#endif
 
 #include "ms_thread.h"
 #include "ms_setting.h"