pineapple-src/externals/libressl/crypto/compat/getpagesize.c

19 lines
253 B
C
Raw Normal View History

2020-12-28 15:15:37 +00:00
/* $OpenBSD$ */
#include <unistd.h>
#ifdef _WIN32
#include <windows.h>
#endif
int
getpagesize(void) {
#ifdef _WIN32
SYSTEM_INFO system_info;
GetSystemInfo(&system_info);
return system_info.dwPageSize;
#else
return sysconf(_SC_PAGESIZE);
#endif
}