(_SC_PAGE_SIZE): Define to _SC_PAGESIZE if that exists.
authorJim Wilson <wilson@gcc.gnu.org>
Sun, 8 Aug 1993 22:19:52 +0000 (15:19 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Sun, 8 Aug 1993 22:19:52 +0000 (15:19 -0700)
From-SVN: r5114

gcc/config/mips/svr3-5.h
gcc/config/mips/svr4-5.h

index 67f2960636a1446bebba14442d5b924c9f3e25ee..1764237ad94bbd60c0c353b785a2b8c0aaf53b1a 100644 (file)
@@ -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)
 
index 55864e516254eddf83a89f873cfd64f113b8f2ed..94a97e5727b3071e573a3b3c0d2c2c42cab83600 100644 (file)
@@ -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 */