mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-05 18:24:06 +00:00
Fix FreeBSD recvfrom
`fromlen` must be a pointer, not a value.
This commit is contained in:
@@ -79,7 +79,10 @@ where
|
||||
cast(uintptr)len(buf),
|
||||
cast(uintptr)flags,
|
||||
cast(uintptr)from,
|
||||
cast(uintptr)fromlen)
|
||||
cast(uintptr)&fromlen)
|
||||
|
||||
// `from.len` will be modified by the syscall, so we shouldn't need to pass
|
||||
// `fromlen` back from this API.
|
||||
|
||||
if !ok {
|
||||
return 0, cast(Errno)result
|
||||
|
||||
Reference in New Issue
Block a user