fix core and libc

This commit is contained in:
avanspector
2024-02-25 03:32:35 +01:00
parent 0fa6ba726f
commit c3746d9f56
4 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ foreign libc {
_stderr_write :: proc "contextless" (data: []byte) -> (int, _OS_Errno) {
ret := _unix_write(2, raw_data(data), len(data))
if ret < len(data) {
err := __error()
err := __errnop()
return int(ret), _OS_Errno(err^ if err != nil else 0)
}
return int(ret), 0