summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-12-19 17:01:54 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-20 09:53:05 -0800
commitdbdf50d03cd19b8cf62f39a2578996215f47034e (patch)
treea4d9fadb897427cd71f238da8cd430bb4b440140 /qt-ui/subsurfacewebservices.cpp
parentc49f7133c306860fb1f9bb5e6cd138927a5b5f0f (diff)
downloadsubsurface-dbdf50d03cd19b8cf62f39a2578996215f47034e.tar.gz
Fix compilation with libzip < 0.10
Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r--qt-ui/subsurfacewebservices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index 266332f29..20e5707ea 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -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)