summaryrefslogtreecommitdiff
path: root/devel/electron6/files/patch-electron_atom_app_atom__main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron6/files/patch-electron_atom_app_atom__main.cc')
-rw-r--r--devel/electron6/files/patch-electron_atom_app_atom__main.cc35
1 files changed, 35 insertions, 0 deletions
diff --git a/devel/electron6/files/patch-electron_atom_app_atom__main.cc b/devel/electron6/files/patch-electron_atom_app_atom__main.cc
new file mode 100644
index 000000000000..b14434d20224
--- /dev/null
+++ b/devel/electron6/files/patch-electron_atom_app_atom__main.cc
@@ -0,0 +1,35 @@
+--- electron/atom/app/atom_main.cc.orig 2019-09-11 17:30:11 UTC
++++ electron/atom/app/atom_main.cc
+@@ -26,12 +26,12 @@
+ #include "base/win/windows_version.h"
+ #include "content/public/app/sandbox_helper_win.h"
+ #include "sandbox/win/src/sandbox_types.h"
+-#elif defined(OS_LINUX) // defined(OS_WIN)
++#elif defined(OS_LINUX) || defined(OS_BSD) // defined(OS_WIN)
+ #include <unistd.h>
+ #include <cstdio>
+ #include "atom/app/atom_main_delegate.h" // NOLINT
+ #include "content/public/app/content_main.h"
+-#else // defined(OS_LINUX)
++#else // defined(OS_LINUX) || defined(OS_BSD)
+ #include <mach-o/dyld.h>
+ #include <unistd.h>
+ #include <cstdio>
+@@ -168,7 +168,7 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, w
+ return content::ContentMain(params);
+ }
+
+-#elif defined(OS_LINUX) // defined(OS_WIN)
++#elif defined(OS_LINUX) || defined(OS_BSD) // defined(OS_WIN)
+
+ int main(int argc, char* argv[]) {
+ FixStdioStreams();
+@@ -189,7 +189,7 @@ int main(int argc, char* argv[]) {
+ return content::ContentMain(params);
+ }
+
+-#else // defined(OS_LINUX)
++#else // defined(OS_LINUX) || defined(OS_BSD)
+
+ int main(int argc, char* argv[]) {
+ FixStdioStreams();