X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fnproc.c;h=7ebf497a5819784d6e56786783fba52c7fad6053;hb=e901c96e0151d00195c60e9efb1a7668c4b5e3bd;hp=90b568eb37ff083073b595b5592a1830eca44cf0;hpb=5bfd96668f76dfc827930b1f3fb610be20676d3a;p=gnulib.git diff --git a/lib/nproc.c b/lib/nproc.c index 90b568eb3..7ebf497a5 100644 --- a/lib/nproc.c +++ b/lib/nproc.c @@ -1,6 +1,6 @@ /* Detect the number of processors. - Copyright (C) 2009-2010 Free Software Foundation, Inc. + Copyright (C) 2009-2011 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ #include #include -#if HAVE_PTHREAD_AFFINITY_NP && 0 +#if HAVE_PTHREAD_GETAFFINITY_NP && 0 # include # include #endif @@ -71,7 +71,7 @@ num_processors_via_affinity_mask (void) Therefore this code is not enabled. glibc >= 2.3.4 has sched_getaffinity whereas NetBSD 5 has sched_getaffinity_np. */ -#if HAVE_PTHREAD_AFFINITY_NP && defined __GLIBC__ && 0 +#if HAVE_PTHREAD_GETAFFINITY_NP && defined __GLIBC__ && 0 { cpu_set_t set; @@ -94,7 +94,7 @@ num_processors_via_affinity_mask (void) return count; } } -#elif HAVE_PTHREAD_AFFINITY_NP && defined __NetBSD__ && 0 +#elif HAVE_PTHREAD_GETAFFINITY_NP && defined __NetBSD__ && 0 { cpuset_t *set;