1 /* Emulate getpagesize on systems that lack it. */
3 #ifndef HAVE_GETPAGESIZE
6 #define getpagesize() 512
14 #define getpagesize() sysconf(_SC_PAGESIZE)
17 #include <sys/param.h>
20 #define getpagesize() EXEC_PAGESIZE
23 #define getpagesize() NBPG * CLSIZE
26 #endif /* no CLSIZE */
29 #define getpagesize() NBPC
32 #endif /* no EXEC_PAGESIZE */
33 #endif /* no _SC_PAGESIZE */
35 #endif /* not HAVE_GETPAGESIZE */