authorgravatar for ypsvlq@gmail.comElaine Gibson <ypsvlq@gmail.com> 2025-05-31 03:04:58+01:00
committergravatar for ypsvlq@gmail.comElaine Gibson <ypsvlq@gmail.com> 2025-06-05 12:30:54+01:00
log2139eb75f9e1e6fa766797b60566b254efce2f8f
treee5d1842f54294faa79f212f1b9ca3d2ed945c5c8
parent8910ac2ba877ebf745fb35b8ec9b21fdc70d092a

std.c: getcontext is not supported on haiku


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

lib/std/c.zig+2-2
...@@ -10827,8 +10827,8 @@ pub const LC = enum(c_int) {...@@ -10827,8 +10827,8 @@ pub const LC = enum(c_int) {
1082710827
10828pub extern "c" fn setlocale(category: LC, locale: ?[*:0]const u8) ?[*:0]const u8;10828pub extern "c" fn setlocale(category: LC, locale: ?[*:0]const u8) ?[*:0]const u8;
1082910829
10830pub const getcontext = if (builtin.target.abi.isAndroid() or builtin.target.os.tag == .openbsd)10830pub const getcontext = if (builtin.target.abi.isAndroid() or builtin.target.os.tag == .openbsd or builtin.target.os.tag == .haiku)
10831{} // android bionic and openbsd libc does not implement getcontext10831{} // libc does not implement getcontext
10832 else if (native_os == .linux and builtin.target.abi.isMusl())10832 else if (native_os == .linux and builtin.target.abi.isMusl())
10833 linux.getcontext10833 linux.getcontext
10834 else10834 else