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.



_______________________________________________
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to