diff options
author | Andreas Schwab <schwab@suse.de> | 2001-07-15 15:25:11 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2001-07-15 15:25:11 +0000 |
commit | f476000f876da8865b224211b8bb286593dc7e80 (patch) | |
tree | 2e72a6e1cc1c984743628181015d37714fa55182 | |
parent | 655f4b14c86a98082cb358559ec4c188f8661b38 (diff) | |
download | glibc-f476000f876da8865b224211b8bb286593dc7e80.tar glibc-f476000f876da8865b224211b8bb286593dc7e80.tar.gz glibc-f476000f876da8865b224211b8bb286593dc7e80.tar.bz2 glibc-f476000f876da8865b224211b8bb286593dc7e80.zip |
Check _dl_pagesize first. Default to 4096, not EXEC_PAGESIZE.
-rw-r--r-- | sysdeps/unix/sysv/linux/m68k/getpagesize.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/getpagesize.c b/sysdeps/unix/sysv/linux/m68k/getpagesize.c index cfe98fc5ad..009f7f1cca 100644 --- a/sysdeps/unix/sysv/linux/m68k/getpagesize.c +++ b/sysdeps/unix/sysv/linux/m68k/getpagesize.c @@ -28,8 +28,13 @@ int __getpagesize () { + extern size_t _dl_pagesize; #ifdef __NR_getpagesize int result; +#endif + + if (_dl_pagesize != 0) + return _dl_pagesize; result = INLINE_SYSCALL (getpagesize, 0); /* The only possible error is ENOSYS. */ @@ -37,7 +42,7 @@ __getpagesize () return result; #endif - return EXEC_PAGESIZE; + return 4096; } weak_alias (__getpagesize, getpagesize) |