Add linux to OS check.
This commit is contained in:
1 parent
d93f55c5d4
commit
9e4b45f0f0
2 files changed
+2
-2
No files matched your search
@@ -318,7 +318,7 @@ Info_Errno :: enum c.int {
|
|||||||
OVERFLOW = EAI_OVERFLOW,
|
OVERFLOW = EAI_OVERFLOW,
|
||||||
}
|
}
|
||||||
|
|
||||||
when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS == .OpenBSD || ODIN_OS == .OpenBSD {
|
when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS == .OpenBSD || ODIN_OS == .OpenBSD || ODIN_OS == .Linux {
|
||||||
|
|
||||||
hostent :: struct {
|
hostent :: struct {
|
||||||
h_name: cstring, /* [PSX] official name of host */
|
h_name: cstring, /* [PSX] official name of host */
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ Protocol :: enum c.int {
|
|||||||
UDP = IPPROTO_UDP,
|
UDP = IPPROTO_UDP,
|
||||||
}
|
}
|
||||||
|
|
||||||
when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS == .OpenBSD {
|
when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS == .OpenBSD || ODIN_OS == .Linux {
|
||||||
|
|
||||||
in_addr :: struct {
|
in_addr :: struct {
|
||||||
s_addr: in_addr_t, /* [PSX] big endian address */
|
s_addr: in_addr_t, /* [PSX] big endian address */
|
||||||
|
|||||||
Reference in new issue
Block a user