cvs: Rebuild without gnuregex library
[dragonfly.git] / gnu / lib / libregex / test / getpagesize.h
CommitLineData
984263bc
MD
1#ifdef BSD
2#ifndef BSD4_1
3#define HAVE_GETPAGESIZE
4#endif
5#endif
6
7#ifndef HAVE_GETPAGESIZE
8
9#include <sys/param.h>
10
11#ifdef EXEC_PAGESIZE
12#define getpagesize() EXEC_PAGESIZE
13#else
14#ifdef NBPG
15#define getpagesize() NBPG * CLSIZE
16#ifndef CLSIZE
17#define CLSIZE 1
18#endif /* no CLSIZE */
19#else /* no NBPG */
20#define getpagesize() NBPC
21#endif /* no NBPG */
22#endif /* no EXEC_PAGESIZE */
23
24#endif /* not HAVE_GETPAGESIZE */
25