diff options
| author | Antoine Brodin <antoine@FreeBSD.org> | 2021-01-01 10:11:34 +0000 | 
|---|---|---|
| committer | Antoine Brodin <antoine@FreeBSD.org> | 2021-01-01 10:11:34 +0000 | 
| commit | 26b4c8f71f91d22e081b27814782686edde0c90a (patch) | |
| tree | 1c321c39372c25d8634e75b5c8e08edc676b296d /devel/electron7/files/patch-remoting_host_remoting__me2me__host.cc | |
| parent | New port: math/py-optuna: A hyperparameter optimization framework (diff) | |
Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed
With hat:	portmgr
Diffstat (limited to 'devel/electron7/files/patch-remoting_host_remoting__me2me__host.cc')
| -rw-r--r-- | devel/electron7/files/patch-remoting_host_remoting__me2me__host.cc | 108 | 
1 files changed, 108 insertions, 0 deletions
| diff --git a/devel/electron7/files/patch-remoting_host_remoting__me2me__host.cc b/devel/electron7/files/patch-remoting_host_remoting__me2me__host.cc new file mode 100644 index 000000000000..b8a446dd9fd4 --- /dev/null +++ b/devel/electron7/files/patch-remoting_host_remoting__me2me__host.cc @@ -0,0 +1,108 @@ +--- remoting/host/remoting_me2me_host.cc.orig	2019-12-12 12:39:55 UTC ++++ remoting/host/remoting_me2me_host.cc +@@ -120,13 +120,13 @@ + #include "remoting/host/mac/permission_utils.h" + #endif  // defined(OS_MACOSX) +  +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include <gtk/gtk.h> + #include "base/linux_util.h" + #include "remoting/host/audio_capturer_linux.h" + #include "remoting/host/linux/certificate_watcher.h" + #include "ui/gfx/x/x11.h" +-#endif  // defined(OS_LINUX) ++#endif  // defined(OS_LINUX) || defined(OS_BSD) +  + #if defined(OS_WIN) + #include <commctrl.h> +@@ -161,11 +161,11 @@ const char kApplicationName[] = "chromoting"; + const char kStdinConfigPath[] = "-"; + #endif  // !defined(REMOTING_MULTI_PROCESS) +  +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // The command line switch used to pass name of the pipe to capture audio on + // linux. + const char kAudioPipeSwitchName[] = "audio-pipe-name"; +-#endif  // defined(OS_LINUX) ++#endif  // defined(OS_LINUX) || defined(OS_BSD) +  + #if defined(OS_POSIX) + // The command line switch used to pass name of the unix domain socket used to +@@ -358,7 +358,7 @@ class HostProcess : public ConfigWatcher::Delegate, +  +   std::unique_ptr<ChromotingHostContext> context_; +  +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) +   // Watch for certificate changes and kill the host when changes occur +   std::unique_ptr<CertificateWatcher> cert_watcher_; + #endif +@@ -555,10 +555,10 @@ bool HostProcess::InitWithCommandLine(const base::Comm +   enable_window_capture_ = cmd_line->HasSwitch(kWindowIdSwitchName); +   if (enable_window_capture_) { +  +-#if defined(OS_LINUX) || defined(OS_WIN) ++#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) +     LOG(WARNING) << "Window capturing is not fully supported on Linux or " +                     "Windows."; +-#endif  // defined(OS_LINUX) || defined(OS_WIN) ++#endif  // defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) +  +     // uint32_t is large enough to hold window IDs on all platforms. +     uint32_t window_id; +@@ -753,7 +753,7 @@ void HostProcess::CreateAuthenticatorFactory() { +     DCHECK(third_party_auth_config_.token_url.is_valid()); +     DCHECK(third_party_auth_config_.token_validation_url.is_valid()); +  +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) +     if (!cert_watcher_) { +       cert_watcher_.reset(new CertificateWatcher( +           base::Bind(&HostProcess::ShutdownHost, this, kSuccessExitCode), +@@ -839,7 +839,7 @@ void HostProcess::StartOnUiThread() { +       base::Bind(&HostProcess::OnPolicyUpdate, base::Unretained(this)), +       base::Bind(&HostProcess::OnPolicyError, base::Unretained(this))); +  +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) +   // If an audio pipe is specific on the command-line then initialize +   // AudioCapturerLinux to capture from it. +   base::FilePath audio_pipe_name = base::CommandLine::ForCurrentProcess()-> +@@ -848,7 +848,7 @@ void HostProcess::StartOnUiThread() { +     remoting::AudioCapturerLinux::InitializePipeReader( +         context_->audio_task_runner(), audio_pipe_name); +   } +-#endif  // defined(OS_LINUX) ++#endif  // defined(OS_LINUX) || defined(OS_BSD) +  + #if defined(OS_POSIX) +   base::FilePath security_key_socket_name = +@@ -903,7 +903,7 @@ void HostProcess::ShutdownOnUiThread() { +   // It is now safe for the HostProcess to be deleted. +   self_ = nullptr; +  +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) +   // Cause the global AudioPipeReader to be freed, otherwise the audio +   // thread will remain in-use and prevent the process from exiting. +   // TODO(wez): DesktopEnvironmentFactory should own the pipe reader. +@@ -1532,7 +1532,7 @@ void HostProcess::StartHost() { +   host_->AddExtension(std::make_unique<TestEchoExtension>()); +  +   // TODO(simonmorris): Get the maximum session duration from a policy. +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) +   host_->SetMaximumSessionDuration(base::TimeDelta::FromHours(20)); + #endif +  +@@ -1711,7 +1711,7 @@ void HostProcess::OnCrash(const std::string& function_ + int HostProcessMain() { +   HOST_LOG << "Starting host process: version " << STRINGIZE(VERSION); +  +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) +   if (!base::CommandLine::ForCurrentProcess()->HasSwitch( +           kReportOfflineReasonSwitchName)) { +     // Required in order for us to run multiple X11 threads. | 
