summaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-remoting_host_host__main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-remoting_host_host__main.cc')
-rw-r--r--devel/electron13/files/patch-remoting_host_host__main.cc44
1 files changed, 44 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-remoting_host_host__main.cc b/devel/electron13/files/patch-remoting_host_host__main.cc
new file mode 100644
index 000000000000..d9600e84a739
--- /dev/null
+++ b/devel/electron13/files/patch-remoting_host_host__main.cc
@@ -0,0 +1,44 @@
+--- remoting/host/host_main.cc.orig 2021-07-15 19:13:43 UTC
++++ remoting/host/host_main.cc
+@@ -48,9 +48,9 @@ int DesktopProcessMain();
+ int FileChooserMain();
+ int RdpDesktopSessionMain();
+ #endif // defined(OS_WIN)
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+ int XSessionChooserMain();
+-#endif // defined(OS_LINUX) || defined(OS_CHROMEOS)
++#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+
+ namespace {
+
+@@ -61,10 +61,14 @@ const char kUsageMessage[] =
+ "\n"
+ "Options:\n"
+
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_FREEBSD)
+ " --audio-pipe-name=<pipe> - Sets the pipe name to capture audio on "
++#if defined(OS_LINUX)
+ "Linux.\n"
+-#endif // defined(OS_LINUX)
++#else
++ "FreeBSD.\n"
++#endif
++#endif // defined(OS_LINUX) || defined(OS_FREEBSD)
+
+ #if defined(OS_APPLE)
+ " --list-audio-devices - List all audio devices and their device "
+@@ -148,10 +152,10 @@ MainRoutineFn SelectMainRoutine(const std::string& pro
+ } else if (process_type == kProcessTypeRdpDesktopSession) {
+ main_routine = &RdpDesktopSessionMain;
+ #endif // defined(OS_WIN)
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+ } else if (process_type == kProcessTypeXSessionChooser) {
+ main_routine = &XSessionChooserMain;
+-#endif // defined(OS_LINUX) || defined(OS_CHROMEOS)
++#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+ }
+
+ return main_routine;