termux-packages/packages/megacmd/sdk-src-posix-fs.cpp.patch
2022-01-22 08:26:21 +00:00

21 lines
445 B
Diff

--- a/sdk/src/posix/fs.cpp
+++ b/sdk/src/posix/fs.cpp
@@ -30,7 +30,7 @@
#include "mega/osx/osxutils.h"
#endif
-#ifdef __ANDROID__
+#if defined __ANDROID__ && !defined __TERMUX__
#include <jni.h>
extern JavaVM *MEGAjvm;
#endif
@@ -1530,7 +1530,7 @@
void PosixFileSystemAccess::statsid(string *id) const
{
-#ifdef __ANDROID__
+#if defined __ANDROID__ && !defined __TERMUX__
if (!MEGAjvm)
{
LOG_err << "No JVM found";