Browse Source

Added missing build tags in core

Andreas T Jonsson 1 year ago
parent
commit
8ffe577a15
2 changed files with 5 additions and 4 deletions
  1. 1 0
      core/crypto/rand_generic.odin
  2. 4 4
      core/mem/virtual/virtual_bsd.odin

+ 1 - 0
core/crypto/rand_generic.odin

@@ -2,6 +2,7 @@
 //+build !windows
 //+build !openbsd
 //+build !freebsd
+//+build !netbsd
 //+build !darwin
 //+build !js
 package crypto

+ 4 - 4
core/mem/virtual/virtual_bsd.odin

@@ -1,9 +1,7 @@
-//+build freebsd, openbsd
+//+build freebsd, openbsd, netbsd
 //+private
 package mem_virtual
 
-
-
 _reserve :: proc "contextless" (size: uint) -> (data: []byte, err: Allocator_Error) {
 	return nil, nil
 }
@@ -11,16 +9,18 @@ _reserve :: proc "contextless" (size: uint) -> (data: []byte, err: Allocator_Err
 _commit :: proc "contextless" (data: rawptr, size: uint) -> Allocator_Error {
 	return nil
 }
+
 _decommit :: proc "contextless" (data: rawptr, size: uint) {
 }
+
 _release :: proc "contextless" (data: rawptr, size: uint) {
 }
+
 _protect :: proc "contextless" (data: rawptr, size: uint, flags: Protect_Flags) -> bool {
 	return false
 }
 
 _platform_memory_init :: proc() {
-
 }
 
 _map_file :: proc "contextless" (fd: uintptr, size: i64, flags: Map_File_Flags) -> (data: []byte, error: Map_File_Error) {