summaryrefslogtreecommitdiffstats
path: root/src/ideviceinstaller.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-03-18 17:50:02 +0100
committerGravatar Martin Szulecki2013-03-18 17:50:02 +0100
commit1b26aa5876df307b051012ac56fe0bb7530e11b7 (patch)
treee3e6bdbd9966137b3a9033393ff5978e1323f406 /src/ideviceinstaller.c
parent1641d9a8e82a0c5f1ad6968916fce2e63187c400 (diff)
downloadideviceinstaller-1b26aa5876df307b051012ac56fe0bb7530e11b7.tar.gz
ideviceinstaller-1b26aa5876df307b051012ac56fe0bb7530e11b7.tar.bz2
Fix compiling of correct code depending on version of libimobiledevice
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r--src/ideviceinstaller.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 54bd318..7682536 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -68,7 +68,7 @@ int op_completed = 0;
int err_occured = 0;
int notified = 0;
-#ifdef HAVE_LIBIMOBILEDEVICE_1_0
+#ifdef HAVE_LIBIMOBILEDEVICE_1_1
static void notifier(const char *notification, void *unused)
#else
static void notifier(const char *notification)
@@ -419,7 +419,7 @@ int main(int argc, char **argv)
goto leave_cleanup;
}
-#ifdef HAVE_LIBIMOBILEDEVICE_1_0
+#ifdef HAVE_LIBIMOBILEDEVICE_1_1
np_set_notify_callback(np, notifier, NULL);
#else
np_set_notify_callback(np, notifier);