Commit 22756d58aa46c291f7fa1c63d61c7c0483622c4e

Natanael Copa 2014-04-18T09:16:27

physmem: use sysinfo if _SC_PHYS_PAGES unavailable * lib/physmem.c (physmem_total): Some systems like musl libc do not (yet) support _SC_PHYS_PAGES. Use the linux syscall sysinfo as fallback if _SC_PHYS_PAGES or _SC_PAGESIZE fails. (physmem_available): Likewise for _SC_AVPHYS_PAGES. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>