p9y: fix includes
[m6w6/libmemcached] / test / lib / ForkAndExec.cpp
index ac30dd0282195e4430019d61901bf9abd1078d0e..be994fc680efa82e7ed9a632f9ab969b5826b62c 100644 (file)
@@ -1,10 +1,12 @@
 #include "ForkAndExec.hpp"
+#include "p9y/poll.hpp"
 
 #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) {