0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/aapt/incfs-util-map_ptr.cpp.patch
2022-02-08 10:26:57 +09:00

21 lines
572 B
Diff

--- a/incremental_delivery/incfs/util/map_ptr.cpp
+++ b/incremental_delivery/incfs/util/map_ptr.cpp
@@ -18,7 +18,7 @@
#include <android-base/stringprintf.h>
#include <utils/FileMap.h>
-#ifdef __ANDROID__
+#if defined __ANDROID__ && !defined __TERMUX__
#include "incfs_inline.h"
#endif
@@ -50,7 +50,7 @@
return Create(fd, offset, length, file_name, true /* verify */);
}
-#ifdef __ANDROID__
+#if defined __ANDROID__ && !defined __TERMUX__
static bool IsVerificationEnabled(int fd) {
return isIncFsFd(fd) && isFullyLoaded(fd) != LoadingState::Full;
}