Fix #ifdef check for _SC_AVPHYS_PAGES in intel_get_avail_ram_mb()

Check for the sysconf value used here, not the one used in the
previous function.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Alan Coopersmith 2014-12-23 19:07:08 -08:00 committed by Daniel Vetter
parent f3e1a3d9f8
commit f7766d1c77

View File

@ -112,7 +112,7 @@ intel_get_avail_ram_mb(void)
retval = sysinf.freeram;
retval *= sysinf.mem_unit;
#elif defined(_SC_PAGESIZE) && defined(_SC_PHYS_PAGES) /* Solaris */
#elif defined(_SC_PAGESIZE) && defined(_SC_AVPHYS_PAGES) /* Solaris */
long pagesize, npages;
pagesize = sysconf(_SC_PAGESIZE);