Package: libgc-dev
Version: 1:7.1-7
Severity: normal
Tags: patch

AFAICT, libgc now builds with thread support on all Debian platforms:
GC_LINUX_THREADS on Linux, GC_GNU_THREADS on the Hurd, and
GC_FREEBSD_THREADS on kFreeBSD.  However, callers that express
interest in GC's thread support by defining GC_THREADS only get
results on Linux, as gc_config_macros.h doesn't recognize the other
Debian platforms.  Callers can work around that limitation by defining
GC_GNU_THREADS or GC_FREEBSD_THREADS as appropriate, but shouldn't
need to; could you please fix gc_config_macros.h per the below patch
(or the equivalent)?

Thanks!

--- /usr/include/gc/gc_config_macros.h  2011-03-02 10:44:28.000000000 -0500
+++ gc_config_macros.h  2011-03-10 22:29:57.049875315 -0500
@@ -102,7 +102,7 @@
 #   define GC_DARWIN_THREADS
 #   define GC_PTHREADS
 # endif
-# if !defined(GC_PTHREADS) && (defined(__FreeBSD__) || defined(__DragonFly__))
+# if !defined(GC_PTHREADS) && (defined(__FreeBSD__) || defined(__DragonFly__) 
|| defined(__FreeBSD_kernel__))
 #   define GC_FREEBSD_THREADS
 #   define GC_PTHREADS
 # endif
@@ -118,6 +118,10 @@
 #   define GC_AIX_THREADS
 #   define GC_PTHREADS
 # endif
+# if defined(__gnu_hurd__)
+#   define GC_GNU_THREADS
+#   define GC_PTHREADS
+# endif
 #endif /* GC_THREADS */
 
 #if defined(GC_THREADS) && !defined(GC_PTHREADS) && !defined(GC_WIN32_THREADS) 
\



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to