]> granicus.if.org Git - libevent/commitdiff
Add a missing header for regress_thread.c
authorNick Mathewson <nickm@torproject.org>
Wed, 8 Sep 2010 18:52:24 +0000 (14:52 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 8 Sep 2010 18:52:24 +0000 (14:52 -0400)
test/regress_thread.c

index 15d9d2acb905b4189fd988b3c8bc9cada68e34a0..757f2b2acfe4bcd333c48d2a8b75d218a240ae02 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifndef WIN32
+#ifdef _EVENT_HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#ifdef _EVENT_HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
 
 #ifdef _EVENT_HAVE_PTHREADS
 #include <pthread.h>