Fixed build on CentOS.
[m6w6/libmemcached] / clients / ms_thread.c
index 92d68871fd70c7d327957946023dd902ad39bffd..048593d6d0ad26ab3d640e567c069b64d5387625 100644 (file)
 
 #include "config.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"
 #include "ms_atomic.h"