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"
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. */