blob: 11811afdc3fcc37d5c3798fe1f373cf74882fc89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- content/app/content_main.cc.orig 2021-07-19 18:45:15 UTC
+++ content/app/content_main.cc
@@ -62,7 +62,7 @@
#include "base/posix/global_descriptors.h"
#endif
-#if defined(OS_CHROMEOS) || defined(OS_LINUX)
+#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD)
#include "base/files/scoped_file.h"
#endif
@@ -233,7 +233,7 @@ int RunContentProcess(const ContentMainParams& params,
#endif
base::EnableTerminationOnOutOfMemory();
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
// The various desktop environments set this environment variable that
// allows the dbus client library to connect directly to the bus. When this
// variable is not set (test environments like xvfb-run), the dbus client
@@ -308,7 +308,7 @@ int RunContentProcess(const ContentMainParams& params,
InitializeMac();
#endif
-#if defined(OS_CHROMEOS) || defined(OS_LINUX)
+#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD)
base::subtle::EnableFDOwnershipEnforcement(true);
#endif
|