]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't assume AT_PAGESIZE is always available
authorAndreas Schwab <schwab@redhat.com>
Thu, 10 Jun 2010 14:54:06 +0000 (16:54 +0200)
committerAndreas Schwab <schwab@redhat.com>
Thu, 10 Jun 2010 14:54:06 +0000 (16:54 +0200)
ChangeLog
sysdeps/unix/sysv/linux/getpagesize.c

index b2d74eaf590705081b8ef42d656d2314807aaad1..50ba655fc589759e7724c6ae73f978b2cba948f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-06-10  Andreas Schwab  <schwab@redhat.com>
 
+       * sysdeps/unix/sysv/linux/getpagesize.c: Don't assume AT_PAGESIZE
+       is always available.
+
        * sysdeps/unix/sysv/linux/i386/Versions: Export __uname under
        GLIBC_PRIVATE.
        * nptl/Versions: Export __getrlimit under GLIBC_PRIVATE.
index 08660795112bef97fb43c320b47db3474b270a76..fe9bc8ead727dba829379a71ab9b6a8258822bc4 100644 (file)
@@ -28,7 +28,7 @@
 int
 __getpagesize ()
 {
-#ifdef __ASSUME_AT_PAGESIZE
+#if 0 && defined __ASSUME_AT_PAGESIZE
   assert (GLRO(dl_pagesize) != 0);
   return GLRO(dl_pagesize);
 #else