authorgravatar for kt@connectfree.co.jpkristopher tate <kt@connectfree.co.jp> 2018-07-21 19:15:03+09:00
committergravatar for kt@connectfree.co.jpkristopher tate <kt@connectfree.co.jp> 2018-07-21 19:15:03+09:00
log460c2662167758b049d46fa8df94a9cd37a3438e
tree9a86e6963f8e095b128525d3b2201cd7f3e5531d
parent8062afcb31c1545b13070876809a0f51cb9aa034

std.os.posix: Add SOCK_* for darwin;

Tracking issue #1271;

1 files changed, 7 insertions(+), 0 deletions(-)

std/os/darwin_socket.zig+7
...@@ -76,3 +76,10 @@ pub const PF_MAX: c_int = AF_MAX;...@@ -76,3 +76,10 @@ pub const PF_MAX: c_int = AF_MAX;
7676
77pub const SYSPROTO_EVENT: c_int = 1;77pub const SYSPROTO_EVENT: c_int = 1;
78pub const SYSPROTO_CONTROL: c_int = 2;78pub const SYSPROTO_CONTROL: c_int = 2;
79
80pub const SOCK_STREAM: c_int = 1;
81pub const SOCK_DGRAM: c_int = 2;
82pub const SOCK_RAW: c_int = 3;
83pub const SOCK_RDM: c_int = 4;
84pub const SOCK_SEQPACKET: c_int = 5;
85pub const SOCK_MAXADDRLEN: c_int = 255;