summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-06-08 15:37:03 +0200
committerIvan Maidanski <ivmai@mail.ru>2013-06-08 15:37:30 +0200
commit55b6a0870003cc72864a7168311605c71bd874c8 (patch)
treed2e3586e2eb8da1e780b9264fab94426f86b52cc
parentc71e7abc732e157ae8f31a7f32b4a5263b5914a8 (diff)
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).
-rw-r--r--include/gc_config_macros.h9
-rw-r--r--include/private/gcconfig.h9
2 files changed, 9 insertions, 9 deletions
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 <sys/param.h>
- /* 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 <sys/param.h>
+ /* 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) \