diff options
| author | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-04-25 09:43:54 +0200 |
|---|---|---|
| committer | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-04-25 09:43:54 +0200 |
| commit | 8ffe577a150ae5d13adc2ad1826e0001fb1fcc78 (patch) | |
| tree | 875e3e98fd2768616cd4e37c4891bab5dd2dfae7 /core | |
| parent | 384137d4e9958044e200f42ac346130bca20b36c (diff) | |
Added missing build tags in core
Diffstat (limited to 'core')
| -rw-r--r-- | core/crypto/rand_generic.odin | 1 | ||||
| -rw-r--r-- | core/mem/virtual/virtual_bsd.odin | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/core/crypto/rand_generic.odin b/core/crypto/rand_generic.odin index 006ca51fe..cab76418b 100644 --- a/core/crypto/rand_generic.odin +++ b/core/crypto/rand_generic.odin @@ -2,6 +2,7 @@ //+build !windows //+build !openbsd //+build !freebsd +//+build !netbsd //+build !darwin //+build !js package crypto diff --git a/core/mem/virtual/virtual_bsd.odin b/core/mem/virtual/virtual_bsd.odin index 7568084c0..12e7818ef 100644 --- a/core/mem/virtual/virtual_bsd.odin +++ b/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) { |