summaryrefslogtreecommitdiff
path: root/init_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'init_lib.c')
-rw-r--r--init_lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/init_lib.c b/init_lib.c
index 0479af4..a6461bb 100644
--- a/init_lib.c
+++ b/init_lib.c
@@ -47,6 +47,10 @@
#include <fcntl.h>
#include <string.h>
+#ifdef __FreeBSD__
+#include <machine/param.h>
+#endif
+
void
vmem_heap_init(void)
{
@@ -84,8 +88,10 @@ umem_type_init(caddr_t start, size_t len, size_t pgsize)
SYSTEM_INFO info;
GetSystemInfo(&info);
pagesize = info.dwPageSize;
-#else
+#elseif !defined(__FreeBSD__)
pagesize = _sysconf(_SC_PAGESIZE);
+#else
+ pagesize = PAGE_SIZE;
#endif
}