diff options
author | Nikias Bassen | 2013-12-27 11:36:17 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-12-27 11:36:17 +0100 |
commit | 6f96daa17a9fdb41b48f5963f966809329cbecd9 (patch) | |
tree | dfa05e086baed93ce4546e526b93d44d065d5bfb /src/ideviceinstaller.c | |
parent | fe514ef73302973b0df37a999f75b2a461bfa828 (diff) | |
download | ideviceinstaller-6f96daa17a9fdb41b48f5963f966809329cbecd9.tar.gz ideviceinstaller-6f96daa17a9fdb41b48f5963f966809329cbecd9.tar.bz2 |
fix building with older libzip
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r-- | src/ideviceinstaller.c | 7 |
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"; |