From a5ac75b53ff012ff85327ed4d639e43dd65ce627 Mon Sep 17 00:00:00 2001 From: fedor Date: Sun, 29 Dec 2002 01:50:31 +0000 Subject: [PATCH] Add support for BeOS git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15365 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Source/NSPage.m | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index ec5b389c7..bb42ca430 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-12-28 Kelvin + + * Source/NSPage.m: Add BeOS support. + 2002-12-24 Richard Frith-Macdonald * Source/Additions/Unicode.m: Tidied and optimised binary searches. diff --git a/Source/NSPage.m b/Source/NSPage.m index 32de38835..d378b81bf 100644 --- a/Source/NSPage.m +++ b/Source/NSPage.m @@ -68,6 +68,11 @@ getpagesize(void) #define getpagesize vm_page_size #endif +#if __BEOS__ +#include +#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;