From 3de13334ba84c74f6c7cb0c0e6524d74d32734aa Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Sun, 8 Aug 1993 15:19:52 -0700 Subject: [PATCH] (_SC_PAGE_SIZE): Define to _SC_PAGESIZE if that exists. From-SVN: r5114 --- gcc/config/mips/svr3-5.h | 6 ++++++ gcc/config/mips/svr4-5.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/config/mips/svr3-5.h b/gcc/config/mips/svr3-5.h index 67f2960636a..1764237ad94 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 #include +/* 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 55864e51625..94a97e5727b 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 +/* 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 */ -- 2.30.2