freebsd-ports/www/iridium/files/patch-remoting_base_host__settings.cc
Robert Nagy 06a832ee8d www/iridium: resurrect, update to 2022.03.99.1
Sync the port to www/chromium and the shared *BSD patchset

This port no longer uses Python 2.7
2022-03-30 17:20:38 +02:00

20 lines
862 B
C++

--- remoting/base/host_settings.cc.orig 2022-03-28 18:11:04 UTC
+++ remoting/base/host_settings.cc
@@ -7,7 +7,7 @@
#include "base/no_destructor.h"
#include "build/build_config.h"
-#if BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS))
+#if BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD)
#include "remoting/base/file_host_settings.h"
#endif // BUILDFLAG(IS_LINUX)
@@ -44,7 +44,7 @@ HostSettings::~HostSettings() = default;
// static
HostSettings* HostSettings::GetInstance() {
-#if BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS))
+#if BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD)
static base::NoDestructor<FileHostSettings> instance(
FileHostSettings::GetSettingsFilePath());
#elif BUILDFLAG(IS_WIN)