diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 63859807d1..5e72229146 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -340,4 +340,4 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`zig`](zig/) | Zig programming language | 0.12.0-dev.141+ddf5859c2 | https://ziglang.org/ | | [`zlib`](zlib/) | zlib | 1.3 | https://www.zlib.net/ | | [`zsh`](zsh/) | Z Shell (Zsh) | 5.9 | https://www.zsh.org | -| [`zstd`](zstd/) | Zstandard | 1.5.2 | https://facebook.github.io/zstd/ | +| [`zstd`](zstd/) | Zstandard | 1.5.5 | https://facebook.github.io/zstd/ | diff --git a/Ports/zstd/package.sh b/Ports/zstd/package.sh index 4c6b4c9fd3..63b6f2c9bc 100755 --- a/Ports/zstd/package.sh +++ b/Ports/zstd/package.sh @@ -1,8 +1,8 @@ #!/usr/bin/env -S bash ../.port_include.sh port='zstd' -version='1.5.2' +version='1.5.5' files=( - "https://github.com/facebook/zstd/releases/download/v${version}/zstd-${version}.tar.gz#7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0" + "https://github.com/facebook/zstd/releases/download/v${version}/zstd-${version}.tar.gz#9c4396cc829cfae319a6e2615202e82aad41372073482fce286fac78646d3ee4" ) useconfigure='true' diff --git a/Ports/zstd/patches/0003-Include-stdio.h-in-programs-util.h.patch b/Ports/zstd/patches/0003-Include-stdio.h-in-programs-util.h.patch new file mode 100644 index 0000000000..5b962fd7af --- /dev/null +++ b/Ports/zstd/patches/0003-Include-stdio.h-in-programs-util.h.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: EWouters <6179932+EWouters@users.noreply.github.com> +Date: Sat, 2 Sep 2023 19:05:41 +0200 +Subject: [PATCH] Include stdio.h in `programs/util.h` + +--- + programs/util.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/programs/util.h b/programs/util.h +index 8234646bf3dc61e482f8331795b8bf54a7aa0746..4a8596169126b19f7612a743a0b4576c5c97c414 100644 +--- a/programs/util.h ++++ b/programs/util.h +@@ -24,6 +24,7 @@ extern "C" { + #include /* stat, utime */ + #include /* stat, chmod */ + #include "../lib/common/mem.h" /* U64 */ ++#include + + + /*-************************************************************ diff --git a/Ports/zstd/patches/ReadMe.md b/Ports/zstd/patches/ReadMe.md index c13f176d18..53addc750b 100644 --- a/Ports/zstd/patches/ReadMe.md +++ b/Ports/zstd/patches/ReadMe.md @@ -10,3 +10,8 @@ Fix linker soname flags Make platform.h understand that serenity is posix-compliant +## `0003-Include-stdio.h-in-programs-util.h.patch` + +Include stdio.h in `programs/util.h` + +