From: Ivan Maidanski Date: Sat, 8 Jun 2013 13:37:03 +0000 (+0400) Subject: Move GC_OPENBSD_UTHREADS definition to private/gcconfig.h (OpenBSD) X-Git-Tag: gc7_4_0~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55b6a0870003cc72864a7168311605c71bd874c8;p=platform%2Fupstream%2Flibgc.git Move GC_OPENBSD_UTHREADS definition to private/gcconfig.h (OpenBSD) * include/gc_config_macros.h (GC_OPENBSD_UTHREADS): Move definition to gcconfig.h (i.e., do not export to client code). --- diff --git a/include/gc_config_macros.h b/include/gc_config_macros.h index be49b78..9d58900 100644 --- a/include/gc_config_macros.h +++ b/include/gc_config_macros.h @@ -329,15 +329,6 @@ #ifdef GC_PTHREADS -# ifdef GC_OPENBSD_THREADS -# include - /* Prior to 5.2 release, OpenBSD had user threads and required */ - /* special handling. */ -# if OpenBSD < 201211 -# define GC_OPENBSD_UTHREADS 1 -# endif -# endif /* GC_OPENBSD_THREADS */ - # if (defined(GC_DARWIN_THREADS) || defined(GC_WIN32_PTHREADS) \ || defined(__native_client__) || defined(GC_RTEMS_PTHREADS)) \ && !defined(GC_NO_DLOPEN) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 601a3f5..bc4c8df 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2470,6 +2470,15 @@ # define SIGRTMAX 63 #endif +#ifdef GC_OPENBSD_THREADS +# include + /* Prior to 5.2 release, OpenBSD had user threads and required */ + /* special handling. */ +# if OpenBSD < 201211 +# define GC_OPENBSD_UTHREADS 1 +# endif +#endif /* GC_OPENBSD_THREADS */ + #if defined(SVR4) || defined(LINUX) || defined(IRIX5) || defined(HPUX) \ || defined(OPENBSD) || defined(NETBSD) || defined(FREEBSD) \ || defined(DGUX) || defined(BSD) || defined(HURD) \