Move GC_OPENBSD_UTHREADS definition to private/gcconfig.h (OpenBSD)
authorIvan Maidanski <ivmai@mail.ru>
Sat, 8 Jun 2013 13:37:03 +0000 (17:37 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 8 Jun 2013 13:37:30 +0000 (17:37 +0400)
* include/gc_config_macros.h (GC_OPENBSD_UTHREADS): Move definition
to gcconfig.h (i.e., do not export to client code).

include/gc_config_macros.h
include/private/gcconfig.h

index be49b78..9d58900 100644 (file)
 
 #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)
index 601a3f5..bc4c8df 100644 (file)
 # 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) \