0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-10-06 02:29:40 +00:00
Files
termux-packages/x11-packages/carbonyl-host-tools/patches/1002-chromium-disable-shm.patch
2025-02-01 17:05:51 +08:00

12 lines
544 B
Diff

--- a/base/files/file_util_posix.cc
+++ b/base/files/file_util_posix.cc
@@ -1111,7 +1111,7 @@
#if !BUILDFLAG(IS_ANDROID)
// This is implemented in file_util_android.cc for that platform.
bool GetShmemTempDir(bool executable, FilePath* path) {
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_AIX)
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_AIX)) && !defined(__TERMUX__)
bool disable_dev_shm = false;
#if !BUILDFLAG(IS_CHROMEOS)
disable_dev_shm = CommandLine::ForCurrentProcess()->HasSwitch(