From de0bdb53ad638e19fc9139ed5c6912a2817750b3 Mon Sep 17 00:00:00 2001 From: Aleksei Piianin Date: Sun, 2 Feb 2025 15:31:20 +0100 Subject: [PATCH] MAC OS (M1, aarch64): fix compilation error --- build.zig | 2 +- build.zig.zon | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index a2cbbeaef0..a12f101b03 100644 --- a/build.zig +++ b/build.zig @@ -399,7 +399,7 @@ pub fn build(b: *std.Build) void { .HAVE_NANOSLEEP = true, .HAVE_PEEKNAMEDPIPE = false, .HAVE_POSIX_MEMALIGN = true, - .HAVE_PRCTL = true, + .HAVE_PRCTL = t.os.tag != .macos, .HAVE_PTHREAD_CANCEL = true, .HAVE_PTHREAD_SET_NAME_NP = false, .HAVE_PTHREAD_SETNAME_NP = false, diff --git a/build.zig.zon b/build.zig.zon index 25d575e7a0..bb90b93c0f 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -6,8 +6,8 @@ .dependencies = .{ .libz = .{ - .url = "https://github.com/allyourcodebase/zlib/archive/refs/tags/1.3.1-3.tar.gz", - .hash = "1220138f4aba0c01e66b68ed9e1e1e74614c06e4743d88bc58af4f1c3dd0aae5fea7", + .url = "https://github.com/allyourcodebase/zlib/archive/refs/tags/1.3.1.tar.gz", + .hash = "122034ab2a12adf8016ffa76e48b4be3245ffd305193edba4d83058adbcfa749c107", }, .mbedtls = .{ .url = "git+https://github.com/allyourcodebase/mbedtls#40a2c1126b45f87d19b256229620bc2995637e5a",