Browse Source

Added build tag

Added build tag to rand_bsd.odin and fixed build warning.
Andreas T Jonsson 1 year ago
parent
commit
1b15d8b453
2 changed files with 3 additions and 3 deletions
  1. 1 1
      core/crypto/rand_bsd.odin
  2. 2 2
      src/bug_report.cpp

+ 1 - 1
core/crypto/rand_bsd.odin

@@ -1,4 +1,4 @@
-//+build freebsd, openbsd
+//+build freebsd, openbsd, netbsd
 package crypto
 
 foreign import libc "system:c"

+ 2 - 2
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);