summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-04-30 17:01:04 +0200
committerGravatar Martin Szulecki2011-04-30 17:01:04 +0200
commitf20cf2b4f14b66f38984e21dbed41da27c03e23a (patch)
tree871723d9826ae97371c4550ae486fbddaeaaf963 /tools
parent6dccecddf012a0a404d121cc2c42ddce7c485fb7 (diff)
downloadlibimobiledevice-f20cf2b4f14b66f38984e21dbed41da27c03e23a.tar.gz
libimobiledevice-f20cf2b4f14b66f38984e21dbed41da27c03e23a.tar.bz2
idevicebackup2: Add typedef for GStatBuf for backwards compatibility
GStatBuf was introduced with glib 2.25.0 which is more recent than we actually allow as minimum requirement.
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index 574155f..3f38830 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -30,6 +30,10 @@
#include <gcrypt.h>
#include <unistd.h>
+#if !GLIB_CHECK_VERSION(2,25,0)
+typedef struct stat GStatBuf;
+#endif
+
#include <libimobiledevice/libimobiledevice.h>
#include <libimobiledevice/lockdown.h>
#include <libimobiledevice/mobilebackup2.h>