FreeBSD build changes and allow to run the tests.

This commit is contained in:
David Carlier
2018-08-05 10:37:53 +01:00
committed by David Goldblatt
parent e8ec9528ab
commit 0771ff2cea
3 changed files with 29 additions and 11 deletions

View File

@@ -390,8 +390,6 @@ os_page_detect(void) {
SYSTEM_INFO si;
GetSystemInfo(&si);
return si.dwPageSize;
#elif defined(__FreeBSD__)
return getpagesize();
#else
long result = sysconf(_SC_PAGESIZE);
if (result == -1) {