blob: 0074c4419b5460d2a82de8ace3cdd99a8fd0c7e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- electron/atom/app/atom_main.cc.orig 2019-04-04 16:09:31 UTC
+++ electron/atom/app/atom_main.cc
@@ -25,12 +25,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>
@@ -181,7 +181,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();
@@ -202,7 +202,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();
|