0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-03 15:25:17 +00:00
Files
termux-packages/x11-packages/chromium-host-tools/cr-patches/2016-dawn-aligned-alloc.patch
2025-04-22 18:31:06 +08:00

12 lines
516 B
Diff

--- a/third_party/dawn/src/dawn/common/AlignedAlloc.cpp
+++ b/third_party/dawn/src/dawn/common/AlignedAlloc.cpp
@@ -42,7 +42,7 @@
#if DAWN_PLATFORM_IS(WINDOWS)
return _aligned_malloc(size, alignment);
-#elif DAWN_PLATFORM_IS(ANDROID)
+#elif DAWN_PLATFORM_IS(ANDROID) || defined(__TERMUX__)
// Currently std::aligned_alloc() is not supported on the Android build of Chromium. Luckily,
// memalign() on Android returns pointers which can safely be used with free(), so we can use it
// instead.