Skip to content

Commit 345ed4d

Browse files
committed
fix(foundation): use HW_PHYSMEM for physical memory detection on FreeBSD
Signed-off-by: Pedro Ramos <131530838+pr9000@users.noreply.github.com>
1 parent 37ef5b5 commit 345ed4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/foundation/system_info.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static cbm_system_info_t detect_system_bsd(void) {
9595
info.total_cores = nprocs > 0 ? (int)nprocs : 1;
9696
info.perf_cores = info.total_cores;
9797

98-
#if defined(__OpenBSD__)
98+
#if defined(__OpenBSD__) || defined(__FreeBSD__)
9999
int mib[2] = {CTL_HW, HW_PHYSMEM};
100100
#else
101101
int mib[2] = {CTL_HW, HW_PHYSMEM64};

0 commit comments

Comments
 (0)