aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-printing_mojom_printing__context__mojom__traits.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-printing_mojom_printing__context__mojom__traits.cc')
-rw-r--r--devel/electron37/files/patch-printing_mojom_printing__context__mojom__traits.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-printing_mojom_printing__context__mojom__traits.cc b/devel/electron37/files/patch-printing_mojom_printing__context__mojom__traits.cc
new file mode 100644
index 000000000000..c484473ad50b
--- /dev/null
+++ b/devel/electron37/files/patch-printing_mojom_printing__context__mojom__traits.cc
@@ -0,0 +1,29 @@
+--- printing/mojom/printing_context_mojom_traits.cc.orig 2025-06-30 07:04:30 UTC
++++ printing/mojom/printing_context_mojom_traits.cc
+@@ -19,7 +19,7 @@
+ #include "base/numerics/safe_conversions.h"
+ #endif
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ #include "mojo/public/mojom/base/values.mojom.h"
+ #endif
+
+@@ -162,7 +162,7 @@ bool StructTraits<
+ }
+
+ out->set_pages_per_sheet(data.pages_per_sheet());
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ DCHECK(out->advanced_settings().empty());
+ if (!data.ReadAdvancedSettings(&out->advanced_settings()))
+ return false;
+@@ -239,7 +239,7 @@ bool StructTraits<
+ if (system_print_dialog_data.size() != dictionary_entries) {
+ return false;
+ }
+-#elif BUILDFLAG(IS_LINUX)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ // The dictionary must contain three strings.
+ const base::Value* value = system_print_dialog_data.Find(
+ printing::kLinuxSystemPrintDialogDataPrinter);