diff options
| author | 2011-01-12 18:54:18 +0100 | |
|---|---|---|
| committer | 2011-01-12 18:54:18 +0100 | |
| commit | 88d721e8668cc1b877afc7a8e6601758bfd5511d (patch) | |
| tree | 5b246efa09b1bd68cf1f65fef86c49a8aeae96e7 | |
| parent | 5a6c6b90066727060fd49ad0db5d9006b6cc2c3c (diff) | |
| download | ifuse-88d721e8668cc1b877afc7a8e6601758bfd5511d.tar.gz ifuse-88d721e8668cc1b877afc7a8e6601758bfd5511d.tar.bz2 | |
Fix compilation without house_arrest support in libimobiledevice
| -rw-r--r-- | src/ifuse.c | 8 | 
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; | 
