Add support for BeOS

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15365 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-12-29 01:50:31 +00:00
parent f8470369c2
commit 01bd4c56f5
2 changed files with 9 additions and 0 deletions

View file

@ -68,6 +68,11 @@ getpagesize(void)
#define getpagesize vm_page_size
#endif
#if __BEOS__
#include <kernel/OS.h>
#define getpagesize() B_PAGE_SIZE
#endif
/* Cache the size of a memory page here, so we don't have to make the
getpagesize() system call repeatedly. */
static unsigned ns_page_size = 0;