0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/mindforger/lib-src-gear-file_utils.cpp.patch
2023-01-30 19:28:03 +00:00

12 lines
340 B
Diff

--- a/lib/src/gear/file_utils.cpp
+++ b/lib/src/gear/file_utils.cpp
@@ -120,7 +120,7 @@
char* cwd_c = _getcwd(nullptr, 0);
std::string cwd{cwd_c};
std::free(cwd_c) ;
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) || defined(__ANDROID__)
char* cwd_c = getcwd(NULL, 0);
std::string cwd{cwd_c};
free(cwd_c);