changeset 8210:60c05f96e004

Use HW_PHYSMEM64 if defined (OpenBSD/NetBSD) for sysctl to get physical memory size. Fixes fastdebug assert. Author: Kurt Miller <kurt at intricatesoftware.com>
author Kurt Miller <kurt@intricatesoftware.com>
date Fri, 25 Aug 2017 16:38:36 -0400
parents 49dcb2b450d1
children 3cff87c630f8
files src/os/bsd/vm/os_bsd.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/bsd/vm/os_bsd.cpp	Fri Aug 25 16:03:11 2017 -0400
+++ b/src/os/bsd/vm/os_bsd.cpp	Fri Aug 25 16:38:36 2017 -0400
@@ -312,6 +312,8 @@
 
 #if defined (HW_MEMSIZE) // Apple
   mib[1] = HW_MEMSIZE;
+#elif defined(HW_PHYSMEM64) // OpenBSD & NetBSD
+  mib[1] = HW_PHYSMEM64;
 #elif defined(HW_PHYSMEM) // Most of BSD
   mib[1] = HW_PHYSMEM;
 #elif defined(HW_REALMEM) // Old FreeBSD