tests: be more elaborate about what was expected
[awesomized/libmemcached] / test / lib / Connection.cpp
index 0530d38bf7a88525012e58c6cf8ca6e90ff90cec..82414f135127d373588e37b67846365e3b599a2b 100644 (file)
@@ -1,8 +1,10 @@
 #include "Connection.hpp"
+#include "p9y/poll.hpp"
 
 #include <cerrno>
-#include <sys/poll.h>
-#include <unistd.h>
+#if HAVE_UNISTD_H
+#  include <unistd.h>
+#endif
 
 #if !(HAVE_SOCK_NONBLOCK && HAVE_SOCK_CLOEXEC)
 #  include <fcntl.h>