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

@ -1,3 +1,7 @@
2002-12-28 Kelvin <kelvin@xbar.org>
* Source/NSPage.m: Add BeOS support.
2002-12-24 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/Unicode.m: Tidied and optimised binary searches.

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;