From e052d7768f2cd66ab7ccdab901e6bc964b900e6e Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Thu, 24 Mar 2011 14:54:31 +0100
Subject: [PATCH 190/396] getpagesize.c, unistd.h: hide __pagesize

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 include/unistd.h                        |    1 +
 libc/sysdeps/linux/common/getpagesize.c |    2 --
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/include/unistd.h b/include/unistd.h
index 4ba0886..a886ad1 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1230,6 +1230,7 @@ __END_DECLS
 #endif
 typedef signed smallint_type smallint;
 typedef unsigned smallint_type smalluint;
+extern size_t __pagesize attribute_hidden;
 #endif
 
 
diff --git a/libc/sysdeps/linux/common/getpagesize.c b/libc/sysdeps/linux/common/getpagesize.c
index 1faa548..84e208c 100644
--- a/libc/sysdeps/linux/common/getpagesize.c
+++ b/libc/sysdeps/linux/common/getpagesize.c
@@ -20,8 +20,6 @@
 #include <features.h>
 #include <sys/param.h>
 
-extern size_t __pagesize;
-
 /* Return the system page size.  */
 /* couldn't make __getpagesize hidden, because shm.h uses it in a macro */
 extern __typeof(getpagesize) __getpagesize;
-- 
1.7.0.4

