diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-08-08 15:19:52 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-08-08 15:19:52 -0700 |
commit | 3de13334ba84c74f6c7cb0c0e6524d74d32734aa (patch) | |
tree | ae1ef1e7ecdd297dcd2eb64ed2ba403fd4f1f68b | |
parent | 302484ff4a3f38eedece5cc70d0cce7698689f12 (diff) | |
download | gcc-3de13334ba84c74f6c7cb0c0e6524d74d32734aa.zip gcc-3de13334ba84c74f6c7cb0c0e6524d74d32734aa.tar.gz gcc-3de13334ba84c74f6c7cb0c0e6524d74d32734aa.tar.bz2 |
(_SC_PAGE_SIZE): Define to _SC_PAGESIZE if that exists.
From-SVN: r5114
-rw-r--r-- | gcc/config/mips/svr3-5.h | 6 | ||||
-rw-r--r-- | gcc/config/mips/svr4-5.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config/mips/svr3-5.h b/gcc/config/mips/svr3-5.h index 67f2960..1764237 100644 --- a/gcc/config/mips/svr3-5.h +++ b/gcc/config/mips/svr3-5.h @@ -61,6 +61,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <sys/param.h> #include <unistd.h> +/* In at least 5.0 and 5.01, there is no _SC_PAGE_SIZE macro, only a + _SC_PAGESIZE macro. */ +#ifdef _SC_PAGESIZE +#define _SC_PAGE_SIZE _SC_PAGESIZE +#endif + #ifdef _SC_PAGE_SIZE #define getpagesize() sysconf(_SC_PAGE_SIZE) diff --git a/gcc/config/mips/svr4-5.h b/gcc/config/mips/svr4-5.h index 55864e5..94a97e5 100644 --- a/gcc/config/mips/svr4-5.h +++ b/gcc/config/mips/svr4-5.h @@ -62,6 +62,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef L_trampoline #include <unistd.h> +/* In at least 5.0 and 5.01, there is no _SC_PAGE_SIZE macro, only a + _SC_PAGESIZE macro. */ +#ifdef _SC_PAGESIZE +#define _SC_PAGE_SIZE _SC_PAGESIZE +#endif + #define getpagesize() sysconf(_SC_PAGE_SIZE) #endif /* L_trampoline */ |