]> 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 17:35:04 +0000 (21:35 +0400)
* tests/test.c: Include unistd.h for fork() declaration if HANDLE_FORK
(and THREADS).

tests/test.c

index fb49c95edabd467e58e7b313a5a7d3f987047c8a..dbe0af374ec544aa0e8864489b6e05aa5439d305 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