WIP
[m6w6/libmemcached] / src / libmemcached / poll.cc
index b8324caa98876c93a8e1e38119913a301b501a36..81062caee33b658e1756f72f82c804b51be1ba48 100644 (file)
 
 #if defined(_WIN32)
 #  include "libmemcached/poll.h"
-
-#  include <sys/time.h>
-#  include <strings.h>
+#  if HAVE_SYS_TIME_H
+#    include <sys/time.h>
+#  endif
+#  include <time.h>
+#  if HAVE_STRINGS_H
+#    include <strings.h>
+#  endif
 
 int poll(struct pollfd fds[], nfds_t nfds, int tmo) {
   fd_set readfds, writefds, errorfds;