mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-02 23:04:09 +08:00
26 lines
416 B
C
26 lines
416 B
C
|
#ifdef BSD
|
||
|
#ifndef BSD4_1
|
||
|
#define HAVE_GETPAGESIZE
|
||
|
#endif
|
||
|
#endif
|
||
|
|
||
|
#ifndef HAVE_GETPAGESIZE
|
||
|
|
||
|
#include <sys/param.h>
|
||
|
|
||
|
#ifdef EXEC_PAGESIZE
|
||
|
#define getpagesize() EXEC_PAGESIZE
|
||
|
#else
|
||
|
#ifdef NBPG
|
||
|
#define getpagesize() NBPG * CLSIZE
|
||
|
#ifndef CLSIZE
|
||
|
#define CLSIZE 1
|
||
|
#endif /* no CLSIZE */
|
||
|
#else /* no NBPG */
|
||
|
#define getpagesize() NBPC
|
||
|
#endif /* no NBPG */
|
||
|
#endif /* no EXEC_PAGESIZE */
|
||
|
|
||
|
#endif /* not HAVE_GETPAGESIZE */
|
||
|
|