Fix some compilation errors on POSIX linux.

This commit is contained in:
Isaac Andrade
2024-09-09 22:17:42 -06:00
parent 9e4b45f0f0
commit 92ff04629e
5 changed files with 11 additions and 4 deletions
+7
View File
@@ -12,6 +12,13 @@ when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS
sun_path: [104]c.char, /* [PSX] socket pathname */
}
} else when ODIN_OS == .Linux {
sockaddr_un :: struct {
sun_family: sa_family_t, /* [PSX] address family */
sun_path: [108]c.char, /* [PSX] socket pathname */
}
} else {
#panic("posix is unimplemented for the current target")
}