mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Add linux to OS check.
This commit is contained in:
@@ -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