util: unbreak on BSDs after MSVC changes
src/util/os_misc.c:352:2: error: unexpected platform in os_sysinfo.c
#error unexpected platform in os_sysinfo.c
^
Fixes: cdf3a6a83b
("util: Add os_get_page_size query")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7887>
This commit is contained in:
parent
d3c67d7e7e
commit
18f6bd676d
|
@ -331,7 +331,7 @@ os_get_available_system_memory(uint64_t *size)
|
|||
bool
|
||||
os_get_page_size(uint64_t *size)
|
||||
{
|
||||
#if DETECT_OS_LINUX || DETECT_OS_CYGWIN || DETECT_OS_SOLARIS || DETECT_OS_HURD
|
||||
#if DETECT_OS_UNIX && !DETECT_OS_APPLE && !DETECT_OS_HAIKU
|
||||
const long page_size = sysconf(_SC_PAGE_SIZE);
|
||||
|
||||
if (page_size <= 0)
|
||||
|
|
Loading…
Reference in New Issue