summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-01-12 18:54:18 +0100
committerGravatar Martin Szulecki2011-01-12 18:54:18 +0100
commit88d721e8668cc1b877afc7a8e6601758bfd5511d (patch)
tree5b246efa09b1bd68cf1f65fef86c49a8aeae96e7 /src
parent5a6c6b90066727060fd49ad0db5d9006b6cc2c3c (diff)
downloadifuse-88d721e8668cc1b877afc7a8e6601758bfd5511d.tar.gz
ifuse-88d721e8668cc1b877afc7a8e6601758bfd5511d.tar.bz2
Fix compilation without house_arrest support in libimobiledevice
Diffstat (limited to 'src')
-rw-r--r--src/ifuse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 134d868..595f350 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -44,14 +44,18 @@
#include <libimobiledevice/libimobiledevice.h>
#include <libimobiledevice/lockdown.h>
#include <libimobiledevice/afc.h>
+#ifdef HAVE_LIBIMOBILEDEVICE_1_1
#include <libimobiledevice/house_arrest.h>
+#endif
/* FreeBSD and others don't have ENODATA, so let's fake it */
#ifndef ENODATA
#define ENODATA EIO
#endif
+#ifdef HAVE_LIBIMOBILEDEVICE_1_1
house_arrest_client_t house_arrest = NULL;
+#endif
/* assume this is the default block size */
int g_blocksize = 4096;
@@ -395,11 +399,15 @@ void *ifuse_init(struct fuse_conn_info *conn)
conn->async_read = 0;
+#ifdef HAVE_LIBIMOBILEDEVICE_1_1
if (house_arrest) {
afc_client_new_from_house_arrest_client(house_arrest, &afc);
} else {
+#endif
afc_client_new(phone, opts.port, &afc);
+#ifdef HAVE_LIBIMOBILEDEVICE_1_1
}
+#endif
lockdownd_client_free(control);
control = NULL;