mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 12:59:17 -04:00
Approved by: rene (mentor) Security: https://vuxml.freebsd.org/freebsd/310ca30e-a951-11ed-8314-a8a1599412c6.html
38 lines
1.4 KiB
C++
38 lines
1.4 KiB
C++
--- printing/print_settings.h.orig 2023-02-08 09:03:45 UTC
|
|
+++ printing/print_settings.h
|
|
@@ -19,7 +19,7 @@
|
|
#include "ui/gfx/geometry/rect.h"
|
|
#include "ui/gfx/geometry/size.h"
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
#include <map>
|
|
|
|
#include "base/values.h"
|
|
@@ -67,7 +67,7 @@ class COMPONENT_EXPORT(PRINTING) PrintSettings {
|
|
}
|
|
};
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
using AdvancedSettings = std::map<std::string, base::Value>;
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
@@ -232,7 +232,7 @@ class COMPONENT_EXPORT(PRINTING) PrintSettings {
|
|
pages_per_sheet_ = pages_per_sheet;
|
|
}
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
AdvancedSettings& advanced_settings() { return advanced_settings_; }
|
|
const AdvancedSettings& advanced_settings() const {
|
|
return advanced_settings_;
|
|
@@ -342,7 +342,7 @@ class COMPONENT_EXPORT(PRINTING) PrintSettings {
|
|
// Number of pages per sheet.
|
|
int pages_per_sheet_;
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
// Advanced settings.
|
|
AdvancedSettings advanced_settings_;
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|