0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/qt5-qtwebengine/0013-chromium-disable-shm.patch
2023-01-06 21:22:56 +00:00

12 lines
597 B
Diff

--- a/src/3rdparty/chromium/base/files/file_util_posix.cc
+++ b/src/3rdparty/chromium/base/files/file_util_posix.cc
@@ -1118,7 +1118,7 @@
#if !defined(OS_ANDROID)
// This is implemented in file_util_android.cc for that platform.
bool GetShmemTempDir(bool executable, FilePath* path) {
-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_AIX)
+#if (defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_AIX)) && !defined(__TERMUX__)
bool disable_dev_shm = false;
#if !defined(OS_CHROMEOS) && !BUILDFLAG(IS_LACROS)
disable_dev_shm = CommandLine::ForCurrentProcess()->HasSwitch(