aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDima Panov <fluffy@FreeBSD.org>2021-01-07 20:35:07 +0800
committerDima Panov <fluffy@FreeBSD.org>2021-01-07 20:35:07 +0800
commitd3f27fda59d4dda635a4422b830dc3f1df924e66 (patch)
treeeece9685d4091e756bce45b9f61e93eaf49c4cd5
parent97946aaece9e124ca8df19f176699e216716ecaa (diff)
downloadfreebsd-ports-gnome-d3f27fda59d4dda635a4422b830dc3f1df924e66.tar.gz
freebsd-ports-gnome-d3f27fda59d4dda635a4422b830dc3f1df924e66.tar.zst
freebsd-ports-gnome-d3f27fda59d4dda635a4422b830dc3f1df924e66.zip
archivers/libzip: unbreak build with non-base *ssl
PR: 252483 Submitted by: rakuco Reported by: rozhuk.im@gmail.com Approved by: rakuco
-rw-r--r--archivers/libzip/files/patch-git_fd89e24218
1 files changed, 18 insertions, 0 deletions
diff --git a/archivers/libzip/files/patch-git_fd89e242 b/archivers/libzip/files/patch-git_fd89e242
new file mode 100644
index 000000000000..c78a4ec0c6cb
--- /dev/null
+++ b/archivers/libzip/files/patch-git_fd89e242
@@ -0,0 +1,18 @@
+commit fd89e242d16128dedef08f47d99ae56aa19b0591
+Author: Ørjan Malde <red@foxi.me>
+Date: Wed Jul 15 12:16:16 2020 +0200
+
+ Include limits.h for INT_MAX
+
+diff --git a/lib/zip_crypto_openssl.c b/lib/zip_crypto_openssl.c
+index 1cb00479..60f92758 100644
+--- lib/zip_crypto_openssl.c
++++ lib/zip_crypto_openssl.c
+@@ -38,6 +38,7 @@
+ #include "zip_crypto.h"
+
+ #include <openssl/rand.h>
++#include <limits.h>
+
+ #if OPENSSL_VERSION_NUMBER < 0x1010000fL || defined(LIBRESSL_VERSION_NUMBER)
+ #define USE_OPENSSL_1_0_API