summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorKris Katterjohn <katterjohn@gmail.com>2019-01-03 17:19:46 -0600
committerNick Mathewson <nickm@torproject.org>2019-01-16 14:40:15 -0500
commit0f3d88a159d32d477893b05a5a6051e9ccc9e716 (patch)
treef07871fbfc38f6bc41ffb9afb54fdc1a6b6e5a64 /Makefile.am
parentefe55b88987c2539c218fdf1f46f16f9bdc3a8eb (diff)
downloadtor-0f3d88a159d32d477893b05a5a6051e9ccc9e716.tar.gz
tor-0f3d88a159d32d477893b05a5a6051e9ccc9e716.zip
Use HW_PHYSMEM instead of HW_USERMEM in get_total_system_memory_impl
The code checked for sysctl being available and HW_PHYSMEM being defined, but HW_USERMEM was actually being used with sysctl instead of HW_PHYSMEM. The case for OpenBSD, etc. use HW_PHYSMEM64 (which is obviously a 64-bit variant of HW_PHYSMEM) and the case for OSX uses HW_MEMSIZE (which appears to be a 64-bit variant of HW_PHYSMEM). Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions