Use correct __error link name for FreeBSD

This commit is contained in:
Feoramund
2024-06-11 01:03:37 -04:00
parent 76292c8ed5
commit c68560c573

View File

@@ -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 ---