Update c.zig, openbsd don't have getcontext

This commit is contained in:
bilaliscarioth 2024-08-21 00:24:41 +02:00 committed by Andrew Kelley
parent 3fb6e46f6e
commit dc72138b91

View file

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