Skip to content

Instantly share code, notes, and snippets.

@fengb

fengb/test Secret

Created June 15, 2019 22:01
Show Gist options
  • Save fengb/36b81ad1529ab5a082021201bb43587e to your computer and use it in GitHub Desktop.
Save fengb/36b81ad1529ab5a082021201bb43587e to your computer and use it in GitHub Desktop.
/usr/local/Cellar/zig/0.4.0+82ab006e/lib/zig/std/debug.zig:1045:23: error: container 'std.c' has no member called '_mh_execute_header'
const hdr = &std.c._mh_execute_header;
^
/usr/local/Cellar/zig/0.4.0+82ab006e/lib/zig/std/c.zig:48:102: error: use of undeclared identifier 'fd_t'
pub extern "c" fn mmap(addr: ?*align(page_size) c_void, len: usize, prot: c_uint, flags: c_uint, fd: fd_t, offset: isize) *c_void;
^
/usr/local/Cellar/zig/0.4.0+82ab006e/lib/zig/std/c.zig:18:30: error: use of undeclared identifier '_errno'
return @intCast(u16, _errno().*);
^
/usr/local/Cellar/zig/0.4.0+82ab006e/lib/zig/std/os.zig:1990:18: note: called from here
switch (errno(system.munmap(memory.ptr, memory.len))) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment