summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-08 11:51:43 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-08 11:51:43 +0000
commit4cb63ab6d1034aa3449154396fcdf35fce1200f6 (patch)
tree7624db813131fa72478a734bf0e8f99dd6513572 /libc/sysdeps
parent9eb7e16e2557ada5e81814492eedac426711760f (diff)
create a hidden internal pagesize symbol for libc usage
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 669cdb075..517040d46 100644
--- a/libc/sysdeps/linux/common/getpagesize.c
+++ b/libc/sysdeps/linux/common/getpagesize.c
@@ -19,14 +19,14 @@
#include <unistd.h>
#include <features.h>
#include <sys/param.h>
-extern size_t __pagesize;
+extern size_t __pagesize_internal attribute_hidden;
/* Return the system page size. */
/* couldn't make __getpagesize hidden, because shm.h uses it in a macro */
int attribute_hidden __getpagesize_internal(void)
{
- if (__pagesize != 0)
- return __pagesize;
+ if (__pagesize_internal != 0)
+ return __pagesize_internal;
#ifdef EXEC_PAGESIZE
return EXEC_PAGESIZE;