[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Updating libgc port
From: |
Alfred M. Szmidt |
Subject: |
Re: Updating libgc port |
Date: |
Wed, 19 Oct 2005 00:20:27 +0200 |
diff -Naur libgc-6.5/pthread_support.c libgc-6.5.new/pthread_support.c
--- libgc-6.5/pthread_support.c 2005-05-21 02:02:07.000000000 +0200
+++ libgc-6.5.new/pthread_support.c 2005-10-18 18:33:32.000000000 +0200
@@ -877,7 +877,8 @@
GC_nprocs = sysconf(_SC_NPROCESSORS_ONLN);
if (GC_nprocs <= 0) GC_nprocs = 1;
# endif
-# if defined(GC_FREEBSD_THREADS) || defined(GC_IRIX_THREADS)
+# if defined(GC_FREEBSD_THREADS) || defined(GC_IRIX_THREADS) \
+ || defined(GC_GNU_THREADS)
/* FIXME: For Irix, that's a ridiculous assumption. */
GC_nprocs = 1;
# endif
Use sysconf as above.