projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b3b74
)
[!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define getpagesize.
author
Jim Meyering
<jim@meyering.net>
Tue, 18 Apr 2000 13:40:25 +0000
(13:40 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 18 Apr 2000 13:40:25 +0000
(13:40 +0000)
For BeOS. Based on a patch from Bruno Haible.
lib/getpagesize.h
patch
|
blob
|
history
diff --git
a/lib/getpagesize.h
b/lib/getpagesize.h
index
c7632e3
..
9de8c06
100644
(file)
--- 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