diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-01-18 17:24:26 +0100 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2021-01-18 17:24:26 +0100 |
| commit | f33bac2b12d41dc574cdac4d97089fdd0b31a336 (patch) | |
| tree | b799b31df49802ff04c748ecaffab235f9e7963f /lib/std/c/freebsd.zig | |
| parent | 9d18df142c2b1583fcf0d59982b571699a63223e (diff) | |
| download | zig-f33bac2b12d41dc574cdac4d97089fdd0b31a336.tar.gz zig-f33bac2b12d41dc574cdac4d97089fdd0b31a336.zip | |
std: define pipe2 only for os that support it
Diffstat (limited to 'lib/std/c/freebsd.zig')
| -rw-r--r-- | lib/std/c/freebsd.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index a6c84c66fa..795b36dc68 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -14,6 +14,7 @@ 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 extern "c" fn pthread_getthreadid_np() c_int; +pub extern "c" fn pipe2(fds: *[2]fd_t, flags: u32) c_int; pub extern "c" fn posix_memalign(memptr: *?*c_void, alignment: usize, size: usize) c_int; pub extern "c" fn malloc_usable_size(?*const c_void) usize; |
