Browse Source

Use correct `__error` link name for FreeBSD

Feoramund 1 year ago
parent
commit
c68560c573
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/path/filepath/path_unix.odin

+ 1 - 1
core/path/filepath/path_unix.odin

@@ -56,7 +56,7 @@ foreign libc {
 	@(link_name="free") _unix_free :: proc(ptr: rawptr) ---
 
 }
-when ODIN_OS == .Darwin {
+when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD {
 	@(private)
 	foreign libc {
 		@(link_name="__error")          __error :: proc() -> ^i32 ---