aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-tools_json__schema__compiler_cpp__bundle__generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-tools_json__schema__compiler_cpp__bundle__generator.py')
-rw-r--r--www/chromium/files/patch-tools_json__schema__compiler_cpp__bundle__generator.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/chromium/files/patch-tools_json__schema__compiler_cpp__bundle__generator.py b/www/chromium/files/patch-tools_json__schema__compiler_cpp__bundle__generator.py
new file mode 100644
index 000000000000..488f666a4aad
--- /dev/null
+++ b/www/chromium/files/patch-tools_json__schema__compiler_cpp__bundle__generator.py
@@ -0,0 +1,11 @@
+--- tools/json_schema_compiler/cpp_bundle_generator.py.orig 2022-02-07 13:39:41 UTC
++++ tools/json_schema_compiler/cpp_bundle_generator.py
+@@ -154,7 +154,7 @@ class CppBundleGenerator(object):
+ # defined(OS_CHROMEOS) && BUILDFLAG(IS_CHROMEOS_LACROS).
+ ifdefs.append('BUILDFLAG(IS_CHROMEOS_LACROS)')
+ elif platform == Platforms.LINUX:
+- ifdefs.append('(defined(OS_LINUX) && !defined(OS_CHROMEOS))')
++ ifdefs.append('(defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD)')
+ elif platform == Platforms.MAC:
+ ifdefs.append('defined(OS_MAC)')
+ elif platform == Platforms.WIN: