From e1798f551d13f92b347d9c9da6f6ffca8fb51303 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 4 Feb 2003 00:28:45 +0000 Subject: (allocate_stack): Use __getpagesize instead of __sysconf to determine pagesize. --- nptl/allocatestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl/allocatestack.c') diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 4ec3f44047..e50d2b290d 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -227,7 +227,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, { struct pthread *pd; size_t size; - size_t pagesize_m1 = __sysconf (_SC_PAGESIZE) - 1; + size_t pagesize_m1 = __getpagesize () - 1; assert (attr != NULL); assert (powerof2 (pagesize_m1 + 1)); -- cgit v1.2.3