mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Update c.zig, openbsd don't have getcontext
This commit is contained in:
parent
3fb6e46f6e
commit
dc72138b91
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue