#include <setjmp.h>
#ifndef roundup
-#define roundup (x, y) ((((x)+((y)-1))/(y))*(y))
+#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
#endif
static int pgsize;
#define EXTRABYTES 2 /* XXX: why 2? you don't want to know */
+#ifndef HAVE_GETPAGESIZE
+int
+getpagesize()
+{
+#ifdef EXEC_PAGESIZE
+ return EXEC_PAGESIZE;
+#else /* !EXEC_PAGESIZE */
+# ifdef NBPG
+# ifndef CLSIZE
+# define CLSIZE 1
+# endif /* No CLSIZE */
+ return NBPG * CLSIZE;
+# else /* !NBPG */
+ return NBPC;
+# endif /* NBPG */
+#endif /* EXEC_PAGESIZE */
+}
+#endif /* HAVE_GETPAGESIZE */
+
static char *
msetup(str, n)
char *str;
char *str;
size_t n;
char *fmt;
- char *ap;
+ va_list *ap;
{
struct sigaction osa, nsa;
char *p;