zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1078810cef4b346bdcd0ab0cab27dd997e68d206 (tree)
parent b6f4601545547fff7afa19cba0f26354d651e818
Author: Isaac Freund <ifreund@ifreund.xyz>
Date:   Fri, 11 Sep 2020 16:32:24 +0200

std: add prctl definition when linking libc

Diffstat:
Mlib/std/c.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/std/c.zig b/lib/std/c.zig @@ -340,3 +340,5 @@ pub extern "c" fn sync() void; pub extern "c" fn syncfs(fd: c_int) c_int; pub extern "c" fn fsync(fd: c_int) c_int; pub extern "c" fn fdatasync(fd: c_int) c_int; + +pub extern "c" fn prctl(option: c_int, ...) c_int;