summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-02-24 22:10:56 +0100
committerGravatar Nikias Bassen2017-02-24 22:10:56 +0100
commite9c805ffdec34c66fdc751ea222fa40678c71351 (patch)
treecaf4e88914996906434b2547029f8eb2680cbdb4 /src/common.h
parentaaec66651aba5f617c5c2c22b019d115e2db8e8f (diff)
downloadidevicerestore-e9c805ffdec34c66fdc751ea222fa40678c71351.tar.gz
idevicerestore-e9c805ffdec34c66fdc751ea222fa40678c71351.tar.bz2
common: Add strsep() implementation for platforms lacking it
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 8340d03..5f1d763 100644
--- a/src/common.h
+++ b/src/common.h
@@ -28,6 +28,10 @@
extern "C" {
#endif
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <plist/plist.h>
#include <libirecovery.h>
@@ -131,6 +135,10 @@ int mkdir_with_parents(const char *dir, int mode);
void idevicerestore_progress(struct idevicerestore_client_t* client, int step, double progress);
+#ifndef HAVE_STRSEP
+char* strsep(char** strp, const char* delim);
+#endif
+
#ifdef __cplusplus
}
#endif