(timeout-event-p): Function deleted.
[emacs.git] / src / getpagesize.h
blobef7e45d034a0f6afceb9d87ac624451d6ba973c2
1 /* Emulate getpagesize on systems that lack it. */
3 #ifndef HAVE_GETPAGESIZE
5 #ifdef VMS
6 #define getpagesize() 512
7 #endif
9 #ifdef HAVE_UNISTD_H
10 #include <unistd.h>
11 #endif
13 #ifdef _SC_PAGESIZE
14 #define getpagesize() sysconf(_SC_PAGESIZE)
15 #else
17 #include <sys/param.h>
19 #ifdef EXEC_PAGESIZE
20 #define getpagesize() EXEC_PAGESIZE
21 #else
22 #ifdef NBPG
23 #define getpagesize() NBPG * CLSIZE
24 #ifndef CLSIZE
25 #define CLSIZE 1
26 #endif /* no CLSIZE */
27 #else /* no NBPG */
28 #ifdef NBPC
29 #define getpagesize() NBPC
30 #else /* no NBPC */
31 #ifdef PAGESIZE
32 #define getpagesize() PAGESIZE
33 #endif
34 #endif /* NBPC */
35 #endif /* no NBPG */
36 #endif /* no EXEC_PAGESIZE */
37 #endif /* no _SC_PAGESIZE */
39 #endif /* not HAVE_GETPAGESIZE */