Commit dc72138b91

bilaliscarioth <98892516+bilaliscarioth@users.noreply.github.com>
2024-08-21 00:24:41
Update c.zig, openbsd don't have getcontext
1 parent 3fb6e46
Changed files (1)
lib
std
lib/std/c.zig
@@ -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 const getcontext = if (builtin.target.isAndroid())
-{} // android bionic libc does not implement getcontext
+pub const getcontext = if (builtin.target.isAndroid() or builtin.target.os.tag == .openbsd)
+{} // android bionic and openbsd libc does not implement getcontext
 else if (native_os == .linux and builtin.target.isMusl())
     linux.getcontext
 else