WIP
[m6w6/libmemcached] / test / lib / ForkAndExec.cpp
index e182c7c47dcf55c11f493c71ccc207c220054a0b..753e06ee88f680104886cc9cc1140f5e9324ef72 100644 (file)
@@ -1,11 +1,13 @@
 #include "ForkAndExec.hpp"
 
-#include <cerrno>
 #include <cstdio>
 
 #include <fcntl.h>
 #include <sys/poll.h>
-#include <unistd.h>
+#if HAVE_UNISTD_H
+#  include <unistd.h>
+#endif
+#include <spawn.h>
 
 #if !HAVE_PIPE2
 static inline int setfl(int fd, int newflags) {