mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
fix macosx and freebsd build failures
This commit is contained in:
parent
c81345c8ae
commit
859fc856d3
@ -56,9 +56,9 @@ pub extern "c" fn host_get_clock_service(host: host_t, clock_id: clock_id_t, clo
|
||||
pub extern "c" fn mach_port_deallocate(task: ipc_space_t, name: mach_port_name_t) kern_return_t;
|
||||
|
||||
pub const sf_hdtr = extern struct {
|
||||
headers: [*]iovec_const,
|
||||
headers: [*]const iovec_const,
|
||||
hdr_cnt: c_int,
|
||||
trailers: [*]iovec_const,
|
||||
trailers: [*]const iovec_const,
|
||||
trl_cnt: c_int,
|
||||
};
|
||||
|
||||
|
||||
@ -9,9 +9,9 @@ pub extern "c" fn sigaltstack(ss: ?*stack_t, old_ss: ?*stack_t) c_int;
|
||||
pub extern "c" fn getrandom(buf_ptr: [*]u8, buf_len: usize, flags: c_uint) isize;
|
||||
|
||||
pub const sf_hdtr = extern struct {
|
||||
headers: [*]iovec_const,
|
||||
headers: [*]const iovec_const,
|
||||
hdr_cnt: c_int,
|
||||
trailers: [*]iovec_const,
|
||||
trailers: [*]const iovec_const,
|
||||
trl_cnt: c_int,
|
||||
};
|
||||
pub extern "c" fn sendfile(
|
||||
|
||||
@ -926,6 +926,9 @@ pub const ESOCKTNOSUPPORT = 44;
|
||||
/// Operation not supported
|
||||
pub const ENOTSUP = 45;
|
||||
|
||||
/// Operation not supported. Alias of `ENOTSUP`.
|
||||
pub const EOPNOTSUPP = ENOTSUP;
|
||||
|
||||
/// Protocol family not supported
|
||||
pub const EPFNOSUPPORT = 46;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user