mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
Teach os_get_total_physical_memory about Cygwin
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
parent
cd765cf7ee
commit
bde2a62af7
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
#if defined(PIPE_OS_LINUX)
|
||||
#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_CYGWIN)
|
||||
# include <unistd.h>
|
||||
#elif defined(PIPE_OS_APPLE) || defined(PIPE_OS_BSD)
|
||||
# include <sys/sysctl.h>
|
||||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue