1 /* Emulate getpagesize on systems that lack it. */
3 #ifndef HAVE_GETPAGESIZE
9 #if !defined getpagesize && defined _SC_PAGESIZE
10 # if !(defined VMS && __VMS_VER < 70000000)
11 # define getpagesize() sysconf (_SC_PAGESIZE)
15 #if !defined getpagesize && defined VMS
17 # define getpagesize() 8192
19 # define getpagesize() 512
23 /* This is for BeOS. */
24 #if !defined getpagesize && HAVE_OS_H
26 # if defined B_PAGE_SIZE
27 # define getpagesize() B_PAGE_SIZE
32 # include <sys/param.h>
34 # define getpagesize() EXEC_PAGESIZE
40 # define getpagesize() (NBPG * CLSIZE)
43 # define getpagesize() NBPC
49 #endif /* not HAVE_GETPAGESIZE */