From 049a5804a309e0d202273a969768a7e83ec0b4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 13 Oct 2026 20:32:25 +0200 Subject: [PATCH] std.c: define pthread_cancelstate for serenity --- lib/std/c.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/std/c.zig b/lib/std/c.zig index bcfbccccd44f9ed131c91ad36e1cf7e5d60de4a2..b4e29e664b4fd0ba8c04df55677c97d9470378fb 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -11069,6 +11069,10 @@ pub const pthread_cancelstate = switch (native_os) { ENABLE = 0, DISABLE = 1, }, + .serenity => enum(c_int) { + ENABLE = 1, + DISABLE = 2, + }, else => void, }; pub extern "c" fn pthread_setcancelstate(pthread_cancelstate, ?*pthread_cancelstate) E; -- 2.54.0