From fee403476315d999633aa064ce6f2c24abb193bf Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 24 Mar 2011 14:54:31 +0100 Subject: getpagesize.c, unistd.h: hide __pagesize Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- include/unistd.h | 1 + libc/sysdeps/linux/common/getpagesize.c | 2 -- 2 files changed, 1 insertion(+), 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 #include -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; -- cgit v1.2.3