Files
haikuports/dev-libs/libzip/patches/libzip-1.2.0.patchset
2017-06-04 17:20:30 +02:00

54 lines
1.3 KiB
Plaintext

From be479427ac1889da289f0d9ff8ca3ce3443a7eee Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Sat, 28 May 2016 09:50:37 +0000
Subject: gcc2 patch
diff --git a/src/zipcmp.c b/src/zipcmp.c
index aac1eea..352f2da 100644
--- a/src/zipcmp.c
+++ b/src/zipcmp.c
@@ -314,6 +314,7 @@ list_directory(const char *name, struct archive *a)
FTS *fts;
FTSENT *ent;
zip_uint64_t nalloc;
+ size_t prefix_length;
char * const names[2] = { (char *)name, NULL };
@@ -322,7 +323,7 @@ list_directory(const char *name, struct archive *a)
fprintf(stderr, "%s: can't open directory '%s': %s\n", prg, name, strerror(errno));
return -1;
}
- size_t prefix_length = strlen(name)+1;
+ prefix_length = strlen(name)+1;
nalloc = 0;
--
2.7.0
From cfede57da3bd091f08ab8810d4cae8c919b56ff0 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 21 May 2017 17:08:44 +0200
Subject: fix path for libincludedir
diff --git a/libzip.pc.in b/libzip.pc.in
index ef8af2d..4bdf733 100644
--- a/libzip.pc.in
+++ b/libzip.pc.in
@@ -2,7 +2,7 @@ prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-libincludedir=@libdir@/@PACKAGE@/include
+libincludedir=@includedir@
zipcmp=@prefix@/bin/zipcmp
--
2.7.0