diff --git a/Source/Core/Common/MemoryUtil.cpp b/Source/Core/Common/MemoryUtil.cpp index 655838c4fa..44a6015027 100644 --- a/Source/Core/Common/MemoryUtil.cpp +++ b/Source/Core/Common/MemoryUtil.cpp @@ -165,7 +165,7 @@ size_t MemPhysical() #elif defined __FreeBSD__ mib[1] = HW_REALMEM; #elif defined __OpenBSD__ || defined __NetBSD__ - mib[1] = HW_PHYSMEM; + mib[1] = HW_PHYSMEM64; #endif size_t length = sizeof(size_t); sysctl(mib, 2, &physical_memory, &length, NULL, 0);