WIP
[m6w6/libmemcached] / src / util / daemon.cc
index 3c65a7bb8a247bb4a2165c53d69052b121eda63c..429187b6fec72f60c3dff09c8c3fe379a142f58e 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
+#if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #include <signal.h>
-#include <unistd.h>
+#if HAVE_UNISTD_H
+#  include <unistd.h>
+#endif
 #include <sys/select.h>
 
 #include <util/daemon.hpp>