WIP
[m6w6/libmemcached] / test / lib / Connection.cpp
index b6df553b1ca5f166c259cb29118b6e2ded18b036..806ce502e4f36889ee51c4aa9954c07328da1621 100644 (file)
@@ -2,7 +2,9 @@
 
 #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>
@@ -193,6 +195,5 @@ string Connection::error(const initializer_list<string> &args) {
     ss << arg;
   }
 
-  cerr << ss.str() << endl;
   return ss.str();
 }