diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-12-23 19:07:08 -0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-06 09:29:45 +0100 |
commit | f7766d1c77ffef757e05cbd6c6ed110cdd830045 (patch) | |
tree | 3e0035c8740310d4430dbf576284985f6497b31e /lib/intel_os.c | |
parent | f3e1a3d9f8cc366a1e0dbda42f3da9d37064fcd0 (diff) |
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>
Diffstat (limited to 'lib/intel_os.c')
-rw-r--r-- | lib/intel_os.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intel_os.c b/lib/intel_os.c index db7889b4..1badd3ec 100644 --- a/lib/intel_os.c +++ b/lib/intel_os.c @@ -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); |