diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 1996-01-01 11:01:15 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 1996-01-01 11:01:15 +0000 |
commit | 26ce5ad3876f0ea63ab67a8bdb2ed1a5a1591a3e (patch) | |
tree | 69e72e626f1337094ba2f18cd7fded3ecaa930bf /gnu/usr.bin/kgdb/getpagesize.h | |
parent | a3ab491d642b34f2d3efbc0562abc8e79b38ce09 (diff) |
Diffstat (limited to 'gnu/usr.bin/kgdb/getpagesize.h')
-rw-r--r-- | gnu/usr.bin/kgdb/getpagesize.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/usr.bin/kgdb/getpagesize.h b/gnu/usr.bin/kgdb/getpagesize.h new file mode 100644 index 000000000000..32adae61efa2 --- /dev/null +++ b/gnu/usr.bin/kgdb/getpagesize.h @@ -0,0 +1,25 @@ +#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 */ + |