[HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
authorJim Meyering <jim@meyering.net>
Fri, 16 Nov 2001 09:20:25 +0000 (09:20 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 16 Nov 2001 09:20:25 +0000 (09:20 +0000)
commitd774ba63aadfdf261e8b4b95f05d69948ad1b806
treecdce05439ef8f970387abead515c120d94877a03
parenta92337526dd6c88efe2c7740b0e54d8784d11900
[HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
(physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
determine the amount of total physical memory, use pstat_getstatic.
HPUX-11 doesn't define _SC_PHYS_PAGES.
(physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
If sysconf couldn't be used to determine the amount of available
physical memory, use both pstat_getstatic and pstat_getdynamic.
Based on a patch from Bob Proulx.
lib/physmem.c