]> granicus.if.org Git - gc/commitdiff
Fix gctest to include unistd.h if HANDLE_FORK
authorIvan Maidanski <ivmai@mail.ru>
Tue, 21 Feb 2012 16:43:35 +0000 (20:43 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 21 Feb 2012 16:44:16 +0000 (20:44 +0400)
* tests/test.c: Include unistd.h for fork() declaration if HANDLE_FORK
(and THREADS).

tests/test.c

index 5201d4b4bd8d008f2828cad55114508d29b8b4e4..e2134526b89fdf18851b33db9c5beb24ef785228 100644 (file)
 #   include <pthread.h>
 # endif
 
+# if defined(THREADS) && defined(HANDLE_FORK)
+#   include <unistd.h>
+# endif
+
 # if defined(GC_WIN32_THREADS) && !defined(GC_PTHREADS)
     static CRITICAL_SECTION incr_cs;
 # endif