summaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorAndreas Schwab <aschwab@redhat.com>2009-06-16 13:04:18 +0200
committerAndreas Schwab <aschwab@redhat.com>2009-06-16 13:04:18 +0200
commit8a598439b93552cb666ab3cf63a5ff8aabd06260 (patch)
tree50934cb3f9879206cc36e9c80516ef7eb956719c /posix
parentc38262349f9ad25d708e47a6715e94d87aa924ce (diff)
parent837dea7cf54827d6e43d88a9463bcc10d30472d0 (diff)
Merge branch 'master' of sourceware.org:/git/glibc into fedora/master
Diffstat (limited to 'posix')
-rw-r--r--posix/tst-cpucount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/tst-cpucount.c b/posix/tst-cpucount.c
index fe3cded732..b3691a18da 100644
--- a/posix/tst-cpucount.c
+++ b/posix/tst-cpucount.c
@@ -1,5 +1,6 @@
#include <sched.h>
#include <stdio.h>
+#include <sys/param.h>
static int
do_test (void)
@@ -8,7 +9,7 @@ do_test (void)
CPU_ZERO (&c);
- for (int cnt = 0; cnt < 130; ++cnt)
+ for (int cnt = 0; cnt < MIN (CPU_SETSIZE, 130); ++cnt)
{
int n = CPU_COUNT (&c);
if (n != cnt)