Skip to content

Commit

Permalink
package/libzip: add patch from upstream to fix build
Browse files Browse the repository at this point in the history
Cherry-pick a patch from upstream project that fixes the build when used
with a uClibc based toolchain.

Signed-off-by: Paul Cercueil <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
  • Loading branch information
pcercuei authored and yann-morin-1998 committed Sep 5, 2020
1 parent 5c1a6b4 commit 0e3febb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions package/libzip/0002-Include-limits.h-for-INT_MAX.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From fd89e242d16128dedef08f47d99ae56aa19b0591 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=98rjan=20Malde?= <[email protected]>
Date: Wed, 15 Jul 2020 12:16:16 +0200
Subject: [PATCH] Include limits.h for INT_MAX

[Retrieved from:
https://github.com/nih-at/libzip/commit/fd89e242d16128dedef08f47d99ae56aa19b0591]
Signed-off-by: Paul Cercueil <[email protected]>
---
lib/zip_crypto_openssl.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/lib/zip_crypto_openssl.c b/lib/zip_crypto_openssl.c
index 1cb00479..60f92758 100644
--- a/lib/zip_crypto_openssl.c
+++ b/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
--
2.28.0

0 comments on commit 0e3febb

Please sign in to comment.