]> granicus.if.org Git - gc/commitdiff
Include pthread_np.h from pthread_stop_world.c on OpenBSD
authorIvan Maidanski <ivmai@mail.ru>
Fri, 20 Jul 2012 07:22:24 +0000 (11:22 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 20 Jul 2012 07:22:24 +0000 (11:22 +0400)
* pthread_stop_world.c: Include pthread_np.h if GC_OPENBSD_THREADS to
get pthread_suspend_np() and pthread_resume_np() declarations.

pthread_stop_world.c

index 231ceeee79cd7ef1a5cacd12acfc2328ec382961..722183527c2307202da72a91c925719977c2c6e8 100644 (file)
@@ -35,7 +35,11 @@ GC_INNER __thread GC_thread GC_nacl_gc_thread_self = NULL;
 int GC_nacl_thread_parked[MAX_NACL_GC_THREADS];
 int GC_nacl_thread_used[MAX_NACL_GC_THREADS];
 
-#elif !defined(GC_OPENBSD_THREADS)
+#elif defined(GC_OPENBSD_THREADS)
+
+# include <pthread_np.h>
+
+#else /* !GC_OPENBSD_THREADS && !NACL */
 
 #include <signal.h>
 #include <semaphore.h>