From: Ivan Maidanski Date: Fri, 20 Jul 2012 07:22:24 +0000 (+0400) Subject: Include pthread_np.h from pthread_stop_world.c on OpenBSD X-Git-Tag: gc7_4_0~255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67932bbf4e7843b0f7a0a135bfdd3b5520c7e4df;p=gc Include pthread_np.h from pthread_stop_world.c on OpenBSD * pthread_stop_world.c: Include pthread_np.h if GC_OPENBSD_THREADS to get pthread_suspend_np() and pthread_resume_np() declarations. --- diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 231ceeee..72218352 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -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 + +#else /* !GC_OPENBSD_THREADS && !NACL */ #include #include