From dd3b648e8b12ceb7bfce66e7f179b671403aea9c Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Thu, 28 Mar 1991 16:28:29 +0000 Subject: Johns release --- gdb/getpagesize.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 gdb/getpagesize.h (limited to 'gdb/getpagesize.h') diff --git a/gdb/getpagesize.h b/gdb/getpagesize.h new file mode 100755 index 0000000..32adae6 --- /dev/null +++ b/gdb/getpagesize.h @@ -0,0 +1,25 @@ +#ifdef BSD +#ifndef BSD4_1 +#define HAVE_GETPAGESIZE +#endif +#endif + +#ifndef HAVE_GETPAGESIZE + +#include + +#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 */ + -- cgit v1.1