mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.c: getcontext is not supported on haiku
This commit is contained in:
parent
8910ac2ba8
commit
2139eb75f9
1 changed files with 2 additions and 2 deletions
|
|
@ -10827,8 +10827,8 @@ pub const LC = enum(c_int) {
|
|||
|
||||
pub extern "c" fn setlocale(category: LC, locale: ?[*:0]const u8) ?[*:0]const u8;
|
||||
|
||||
pub const getcontext = if (builtin.target.abi.isAndroid() or builtin.target.os.tag == .openbsd)
|
||||
{} // android bionic and openbsd libc does not implement getcontext
|
||||
pub const getcontext = if (builtin.target.abi.isAndroid() or builtin.target.os.tag == .openbsd or builtin.target.os.tag == .haiku)
|
||||
{} // libc does not implement getcontext
|
||||
else if (native_os == .linux and builtin.target.abi.isMusl())
|
||||
linux.getcontext
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue