From b74d7487810376092329d5c8260ad9ef03b14b02 Mon Sep 17 00:00:00 2001 From: Jay Petacat Date: Sat, 21 Nov 2026 15:16:51 -0700 Subject: [PATCH] Update to SDL 3.4.20 The upstream build config added: - `HAVE_PTHREAD_CONDATTR_SETCLOCK` - `HAVE_SEM_CLOCKWAIT` - `HAVE_SEM_CLOCKWAIT_NP` It looks like `pthread_condattr_setclock` is the only one with long-standing support in both glibc and musl, so it's the only one I added to this project's build config. --- build.zig.zon | 8 ++++---- src/linux.zig | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 5efe1c8a7..ec61b45ad 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,13 +1,13 @@ .{ .name = .sdl, .fingerprint = 0xec638ccbd103848b, - .version = "1.0.13+3.4.18", + .version = "1.0.14+3.4.20", .minimum_zig_version = "0.16.0", .dependencies = .{ .sdl = .{ - .url = "https://github.com/libsdl-org/SDL/archive/refs/tags/release-3.4.18.tar.gz", - .hash = "N-V-__8AACpx-AKEJIUZ0-XrP9-96MpSaw17FJ7L6B7LmO42", - .upstream_version = "3.4.18", // https://github.com/allyourcodebase/SDL/issues/44 + .url = "https://github.com/libsdl-org/SDL/archive/refs/tags/release-3.4.20.tar.gz", + .hash = "N-V-__8AAAMH-QKXb9Ww2J0Gw8Cj2IR7xeUhBXp2kryRRL5n", + .upstream_version = "3.4.20", // https://github.com/allyourcodebase/SDL/issues/44 }, // Linux dependencies .dbus = .{ diff --git a/src/linux.zig b/src/linux.zig index d91726b62..f6e9eab3c 100644 --- a/src/linux.zig +++ b/src/linux.zig @@ -662,6 +662,7 @@ pub fn build( .HAVE_GETPAGESIZE = 1, .HAVE_ICONV = 1, .SDL_USE_LIBICONV = 1, + .HAVE_PTHREAD_CONDATTR_SETCLOCK = 1, .HAVE_PTHREAD_SETNAME_NP = 1, .HAVE_SEM_TIMEDWAIT = 1, .HAVE_GETAUXVAL = 1,