summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-24 14:54:31 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:33 +0200
commitfee403476315d999633aa064ce6f2c24abb193bf (patch)
tree716a69877d485f294bd4d68231b29e5b189fb17b
parent13640c8807e1e4e9b747b82ee05ad54e37422c90 (diff)
getpagesize.c, unistd.h: hide __pagesize
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--include/unistd.h1
-rw-r--r--libc/sysdeps/linux/common/getpagesize.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 4ba0886b0..a886ad1a8 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 1faa54886..84e208c10 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;