From: Jim Wilson Date: Sun, 8 Aug 1993 22:19:52 +0000 (-0700) Subject: (_SC_PAGE_SIZE): Define to _SC_PAGESIZE if that exists. X-Git-Tag: misc/cutover-egcs-0~8829 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3de13334ba84c74f6c7cb0c0e6524d74d32734aa;p=thirdparty%2Fgcc.git (_SC_PAGE_SIZE): Define to _SC_PAGESIZE if that exists. From-SVN: r5114 --- diff --git a/gcc/config/mips/svr3-5.h b/gcc/config/mips/svr3-5.h index 67f2960636a1..1764237ad94b 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 55864e516254..94a97e5727b3 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 */