diff options
-rw-r--r-- | lib/getpagesize.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/getpagesize.h b/lib/getpagesize.h index c7632e388..9de8c06f7 100644 --- a/lib/getpagesize.h +++ b/lib/getpagesize.h @@ -20,6 +20,13 @@ # endif #endif +#if !defined getpagesize && HAVE_OS_H +# include <OS.h> +# if defined B_PAGE_SIZE +# define getpagesize() B_PAGE_SIZE +# endif +#endif + #ifndef getpagesize # include <sys/param.h> # ifdef EXEC_PAGESIZE |