From bb2469202c8ca47e1d673cd37e2750154938452c Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:01:54 -0500 Subject: [PATCH] fix(unzip): fix autoconf dir API probe to prevent false NO_DIR on modern compilers --- .../patches/fix-dir-detection-on-modern-c.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 steps-guix/unzip-6.0/patches/fix-dir-detection-on-modern-c.patch diff --git a/steps-guix/unzip-6.0/patches/fix-dir-detection-on-modern-c.patch b/steps-guix/unzip-6.0/patches/fix-dir-detection-on-modern-c.patch new file mode 100644 index 00000000..bc2e95ed --- /dev/null +++ b/steps-guix/unzip-6.0/patches/fix-dir-detection-on-modern-c.patch @@ -0,0 +1,15 @@ +--- unzip60/unix/configure 2009-01-17 22:57:24 ++++ unzip60/unix/configure 2026-02-27 21:12:00 +@@ -418,7 +418,11 @@ + + echo Check for directory libraries + cat > conftest.c << _EOF_ +-int main() { return closedir(opendir(".")); } ++#include ++#include ++int main() { ++ return closedir(opendir(".")); ++} + _EOF_ + + $CC -o conftest conftest.c >/dev/null 2>/dev/null