From: Jon TURNEY Date: Sun, 17 Aug 2014 16:21:27 +0000 (+0100) Subject: Teach os_get_total_physical_memory about Cygwin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bde2a62af72847f6722180d0203f5b537d1df8ab;p=mesa.git Teach os_get_total_physical_memory about Cygwin Signed-off-by: Jon TURNEY Reviewed-by: Emil Velikov --- diff --git a/src/gallium/auxiliary/os/os_misc.c b/src/gallium/auxiliary/os/os_misc.c index 3846a9a82cc..ef84c79a6bf 100644 --- a/src/gallium/auxiliary/os/os_misc.c +++ b/src/gallium/auxiliary/os/os_misc.c @@ -47,7 +47,7 @@ #endif -#if defined(PIPE_OS_LINUX) +#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_CYGWIN) # include #elif defined(PIPE_OS_APPLE) || defined(PIPE_OS_BSD) # include @@ -111,7 +111,7 @@ os_get_option(const char *name) bool os_get_total_physical_memory(uint64_t *size) { -#if defined(PIPE_OS_LINUX) +#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_CYGWIN) const long phys_pages = sysconf(_SC_PHYS_PAGES); const long page_size = sysconf(_SC_PAGE_SIZE);