authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-03 02:57:11-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-03 02:57:11-05:00
log859fc856d38860bbd8738d3a09527d8fcb7dcc7b
treed17de6846171cc5bceb8e58336215cb6d3e6c25c
parentc81345c8aec56a108f6f98001666a1552d65ce85
signaturelock-open Commit is signed but in an unrecognized format.

fix macosx and freebsd build failures


3 files changed, 7 insertions(+), 4 deletions(-)

lib/std/c/darwin.zig+2-2
...@@ -56,9 +56,9 @@ pub extern "c" fn host_get_clock_service(host: host_t, clock_id: clock_id_t, clo...@@ -56,9 +56,9 @@ pub extern "c" fn host_get_clock_service(host: host_t, clock_id: clock_id_t, clo
56pub extern "c" fn mach_port_deallocate(task: ipc_space_t, name: mach_port_name_t) kern_return_t;56pub extern "c" fn mach_port_deallocate(task: ipc_space_t, name: mach_port_name_t) kern_return_t;
5757
58pub const sf_hdtr = extern struct {58pub const sf_hdtr = extern struct {
59 headers: [*]iovec_const,59 headers: [*]const iovec_const,
60 hdr_cnt: c_int,60 hdr_cnt: c_int,
61 trailers: [*]iovec_const,61 trailers: [*]const iovec_const,
62 trl_cnt: c_int,62 trl_cnt: c_int,
63};63};
6464
lib/std/c/freebsd.zig+2-2
...@@ -9,9 +9,9 @@ pub extern "c" fn sigaltstack(ss: ?*stack_t, old_ss: ?*stack_t) c_int;...@@ -9,9 +9,9 @@ pub extern "c" fn sigaltstack(ss: ?*stack_t, old_ss: ?*stack_t) c_int;
9pub extern "c" fn getrandom(buf_ptr: [*]u8, buf_len: usize, flags: c_uint) isize;9pub extern "c" fn getrandom(buf_ptr: [*]u8, buf_len: usize, flags: c_uint) isize;
1010
11pub const sf_hdtr = extern struct {11pub const sf_hdtr = extern struct {
12 headers: [*]iovec_const,12 headers: [*]const iovec_const,
13 hdr_cnt: c_int,13 hdr_cnt: c_int,
14 trailers: [*]iovec_const,14 trailers: [*]const iovec_const,
15 trl_cnt: c_int,15 trl_cnt: c_int,
16};16};
17pub extern "c" fn sendfile(17pub extern "c" fn sendfile(
lib/std/os/bits/darwin.zig+3
...@@ -926,6 +926,9 @@ pub const ESOCKTNOSUPPORT = 44;...@@ -926,6 +926,9 @@ pub const ESOCKTNOSUPPORT = 44;
926/// Operation not supported926/// Operation not supported
927pub const ENOTSUP = 45;927pub const ENOTSUP = 45;
928928
929/// Operation not supported. Alias of `ENOTSUP`.
930pub const EOPNOTSUPP = ENOTSUP;
931
929/// Protocol family not supported932/// Protocol family not supported
930pub const EPFNOSUPPORT = 46;933pub const EPFNOSUPPORT = 46;
931934