Skip to content

Commit af9c32c

Browse files
committed
Fixes sigtimedwait flag, makes zig version in build zon compatible with anyzig
1 parent 106f1d8 commit af9c32c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .sdl,
33
.fingerprint = 0xec638ccbd103848b,
44
.version = "0.0.0",
5-
.minimum_zig_version = "0.15.0-dev.1218+bc8e1a74c",
5+
.minimum_zig_version = "0.15.0",
66
.dependencies = .{
77
.sdl = .{
88
.url = "https://github.com/libsdl-org/SDL/archive/refs/tags/release-3.2.22.tar.gz",

src/linux.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ pub fn build(
482482
// Set the platform specific build config
483483
const libdecor_version_string = build_zon.dependencies.decor.version;
484484
const libdecor_version = comptime std.SemanticVersion.parse(libdecor_version_string) catch unreachable;
485+
const have_sigtimedwait: i64 = if (target.os.tag == .openbsd) 0 else 1;
485486
build_config_h.addValues(.{
486487
.HAVE_GCC_ATOMICS = 1,
487488

@@ -604,6 +605,7 @@ pub fn build(
604605
.HAVE_POSIX_FALLOCATE = 1,
605606
.HAVE_SIGACTION = 1,
606607
.HAVE_SA_SIGACTION = 1,
608+
.HAVE_SIGTIMEDWAIT = have_sigtimedwait,
607609
.HAVE_ST_MTIM = 1,
608610
.HAVE_SETJMP = 1,
609611
.HAVE_NANOSLEEP = 1,

0 commit comments

Comments
 (0)