*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Sat, 6 Jun 1992 03:55:06 +0000 (03:55 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 6 Jun 1992 03:55:06 +0000 (03:55 +0000)
From-SVN: r1169

gcc/config/mips/news5.h
gcc/config/mips/svr3-4.h

index 30f14a07fc57461b6b2187c93f0ed081ee13cdbf..78be715ff6e7b93de63d65b04f5759d1cf21aeaf 100644 (file)
@@ -59,9 +59,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
    This is only done when compiling the trampoline code.  */
 
 #ifdef  L_trampoline
+#include <types.h>
 #include <unistd.h>
 
+#ifdef _SC_PAGE_SIZE
 #define getpagesize()  sysconf(_SC_PAGE_SIZE)
+
+#else                          /* older rev of OS */
+#define getpagesize()  (NBPC)
+#endif /* !_SC_PAGE_SIZE */
 #endif /*  L_trampoline */
 
 #include "mips.h"
index 9f8e1105d4290991a86168acb3aacb67dd9d2eaf..b3d324ccbac7d639dfc06b5d6e83f9bfaf9dca6f 100644 (file)
@@ -55,9 +55,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
    This is only done when compiling the trampoline code.  */
 
 #ifdef  L_trampoline
+#include <types.h>
 #include <unistd.h>
 
+#ifdef _SC_PAGE_SIZE
 #define getpagesize()  sysconf(_SC_PAGE_SIZE)
+
+#else                          /* older rev of OS */
+#define getpagesize()  (NBPC)
+#endif /* !_SC_PAGE_SIZE */
 #endif /*  L_trampoline */
 
 /* Generate calls to memcpy, etc., not bcopy, etc.  */