more beos

This commit is contained in:
Arvid Norberg
2009-12-09 05:19:48 +00:00
parent 13cb43ffc0
commit 31bbfee895
3 changed files with 18 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ POSSIBILITY OF SUCH DAMAGE.
#ifdef TORRENT_WINDOWS
#include <Windows.h>
#elif defined TORRENT_BEOS
#include <kernel/OS.h>
#else
#include <stdlib.h>
#include <unistd.h> // _SC_PAGESIZE
@@ -52,6 +54,8 @@ namespace libtorrent
SYSTEM_INFO si;
GetSystemInfo(&si);
s = si.dwPageSize;
#elif defined TORRENT_BEOS
s = B_PAGE_SIZE;
#else
s = sysconf(_SC_PAGESIZE);
#endif