diff options
author | Jim Meyering <jim@meyering.net> | 2000-04-18 13:40:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-04-18 13:40:25 +0000 |
commit | 833f309376dc64df3cdb28b00ef20869fd2bed16 (patch) | |
tree | f4540a589eabb44b04b6ee15e571c7e80d3c4bc2 | |
parent | 72b3b743fe3f9b31ded1d6df8a1cf7dc325668e3 (diff) | |
download | coreutils-833f309376dc64df3cdb28b00ef20869fd2bed16.tar.xz |
[!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define getpagesize.
For BeOS. Based on a patch from Bruno Haible.
-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 |