From e9c805ffdec34c66fdc751ea222fa40678c71351 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 24 Feb 2017 22:10:56 +0100 Subject: common: Add strsep() implementation for platforms lacking it --- src/common.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common.h') 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 +#endif + #include #include @@ -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 -- cgit v1.1-32-gdbae