Fix compilation with libzip < 0.10

Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Thiago Macieira 2013-12-19 17:01:54 -08:00 committed by Dirk Hohndel
parent c49f7133c3
commit dbdf50d03c
2 changed files with 7 additions and 2 deletions

View file

@ -753,7 +753,7 @@ void DivelogsDeWebServices::downloadFinished()
int errorcode;
zipFile.seek(0);
#ifdef Q_OS_UNIX
#if defined(Q_OS_UNIX) && defined(LIBZIP_VERSION_MAJOR)
int duppedfd = dup(zipFile.handle());
struct zip *zip = zip_fdopen(duppedfd, 0, &errorcode);
if (!zip)