OSDN Git Service

getpagesize.c, unistd.h: hide __pagesize
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 24 Mar 2011 13:54:31 +0000 (14:54 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:33 +0000 (14:00 +0200)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
include/unistd.h
libc/sysdeps/linux/common/getpagesize.c

index 4ba0886..a886ad1 100644 (file)
@@ -1230,6 +1230,7 @@ __END_DECLS
 #endif
 typedef signed smallint_type smallint;
 typedef unsigned smallint_type smalluint;
+extern size_t __pagesize attribute_hidden;
 #endif
 
 
index 1faa548..84e208c 100644 (file)
@@ -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;