authorgravatar for 98892516+bilaliscarioth@users.noreply.github.combilaliscarioth <98892516+bilaliscarioth@users.noreply.github.com> 2024-08-21 00:24:41+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-08-23 07:19:04-07:00
logdc72138b91f0a6759af686bca84d73b526d882db
tree922ed42dbc71bd734a57e88ca3d9e2363e5c1e06
parent3fb6e46f6e4231b9569193a15a4357a2ae11fb0f

Update c.zig, openbsd don't have getcontext


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/c.zig+2-2
......@@ -9499,8 +9499,8 @@ pub const LC = enum(c_int) {
94999499
95009500pub extern "c" fn setlocale(category: LC, locale: ?[*:0]const u8) ?[*:0]const u8;
95019501
9502pub const getcontext = if (builtin.target.isAndroid())
9503{} // android bionic libc does not implement getcontext
9502pub const getcontext = if (builtin.target.isAndroid() or builtin.target.os.tag == .openbsd)
9503{} // android bionic and openbsd libc does not implement getcontext
95049504else if (native_os == .linux and builtin.target.isMusl())
95059505 linux.getcontext
95069506else