summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-27 11:36:17 +0100
committerGravatar Nikias Bassen2013-12-27 11:36:17 +0100
commit6f96daa17a9fdb41b48f5963f966809329cbecd9 (patch)
treedfa05e086baed93ce4546e526b93d44d065d5bfb
parentfe514ef73302973b0df37a999f75b2a461bfa828 (diff)
downloadideviceinstaller-6f96daa17a9fdb41b48f5963f966809329cbecd9.tar.gz
ideviceinstaller-6f96daa17a9fdb41b48f5963f966809329cbecd9.tar.bz2
fix building with older libzip
-rw-r--r--src/ideviceinstaller.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 0e64e9d..4fa7d63 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -47,6 +47,13 @@
#include <zip.h>
+#ifndef ZIP_CODEC_ENCODE
+// this is required for old libzip...
+#define zip_get_num_entries(x, y) zip_get_num_files(x)
+#define zip_int64_t ssize_t
+#define zip_uint64_t off_t
+#endif
+
#define ITUNES_METADATA_PLIST_FILENAME "iTunesMetadata.plist"
const char PKG_PATH[] = "PublicStaging";