summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-16 19:21:45 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-16 19:21:45 +0000
commita4541d42ff420e9e9ece6aaa1d70c29162d869c8 (patch)
treee5d9fb7f2da96a590d5ba6649551ba41329ce472 /libc/sysdeps
parentaa1a5f5c1a6cf2ff1d8cf9611133c5872165c47e (diff)
The variable used to store pagesize is not the same as the
_dl_pagesize variable in ldso, so avoid aliasing. -Erik
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/getpagesize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/getpagesize.c b/libc/sysdeps/linux/common/getpagesize.c
index 72da95bbc..0844d5b79 100644
--- a/libc/sysdeps/linux/common/getpagesize.c
+++ b/libc/sysdeps/linux/common/getpagesize.c
@@ -19,13 +19,13 @@
#include <unistd.h>
#include <features.h>
#include <sys/param.h>
-extern size_t _dl_pagesize;
+extern size_t __pagesize;
/* Return the system page size. */
int __getpagesize(void)
{
- if (_dl_pagesize != 0)
- return _dl_pagesize;
+ if (__pagesize != 0)
+ return __pagesize;
#ifdef EXEC_PAGESIZE
return EXEC_PAGESIZE;