001-fix-build-with-musl.patch (660B)
1 diff --git a/ibrcommon/data/File.cpp b/ibrcommon/data/File.cpp 2 index 31af4ae..9b49890 100644 3 --- a/ibrcommon/data/File.cpp 4 +++ b/ibrcommon/data/File.cpp 5 @@ -35,9 +35,7 @@ 6 #include <cerrno> 7 #include <fstream> 8 9 -#if !defined(HAVE_FEATURES_H) || defined(ANDROID) 10 #include <libgen.h> 11 -#endif 12 13 #ifdef __WIN32__ 14 #include <io.h> 15 @@ -226,7 +224,7 @@ namespace ibrcommon 16 std::string File::getBasename() const 17 { 18 #if !defined(ANDROID) && defined(HAVE_FEATURES_H) 19 - return std::string(basename(_path.c_str())); 20 + return std::string(basename((char *)_path.c_str())); 21 #else 22 char path[_path.length()+1]; 23 ::memcpy(&path, _path.c_str(), _path.length()+1);