From 1b15d8b4537a8568ddb6eaae5a8ecde383c49d2f Mon Sep 17 00:00:00 2001 From: Andreas T Jonsson Date: Mon, 22 Apr 2024 09:32:19 +0200 Subject: Added build tag Added build tag to rand_bsd.odin and fixed build warning. --- src/bug_report.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bug_report.cpp') diff --git a/src/bug_report.cpp b/src/bug_report.cpp index b514df3eb..2262779c1 100644 --- a/src/bug_report.cpp +++ b/src/bug_report.cpp @@ -250,7 +250,7 @@ gb_internal void report_ram_info() { if (sysctl(mibs, 2, &ram_amount, &val_size, NULL, 0) != -1) { gb_printf("%lld MiB\n", ram_amount / gb_megabytes(1)); } - #elif defined(GB_SYSTEM_OPENBSD) || defined(GB_SYSTEM_NETBSD) + #elif defined(GB_SYSTEM_OPENBSD) uint64_t ram_amount; size_t val_size = sizeof(ram_amount); @@ -258,7 +258,7 @@ gb_internal void report_ram_info() { if (sysctl(mibs, 2, &ram_amount, &val_size, NULL, 0) != -1) { gb_printf("%lld MiB\n", ram_amount / gb_megabytes(1)); } - #elif defined(GB_SYSTEM_FREEBSD) + #elif defined(GB_SYSTEM_FREEBSD) || defined(GB_SYSTEM_NETBSD) uint64_t ram_amount; size_t val_size = sizeof(ram_amount); -- cgit v1.2.3