diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-04 00:28:45 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-04 00:28:45 +0000 |
commit | e1798f551d13f92b347d9c9da6f6ffca8fb51303 (patch) | |
tree | 959eb504262dce6f6a92353e97186adbd7736206 /nptl/allocatestack.c | |
parent | a37818b3ec347144fe27fc8e5d341515b66e12e0 (diff) | |
download | glibc-e1798f551d13f92b347d9c9da6f6ffca8fb51303.tar.gz glibc-e1798f551d13f92b347d9c9da6f6ffca8fb51303.tar.xz glibc-e1798f551d13f92b347d9c9da6f6ffca8fb51303.zip |
(allocate_stack): Use __getpagesize instead of __sysconf to determine pagesize.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |