ports/devel/electron4/files/patch-electron_atom_app_atom__main.cc
Luca Pizzamiglio 2f40d531c4 devel/electron4: Add electron 4.2.2
Finally, after a long wait, an electron port for FreeBSD lands in the
portstree.

A huge thanks to everyone contributed to this huge effort and to the
maintainer that is willing to take the burden of the maintainership!
2019-05-28 09:12:02 +00:00

35 lines
1.2 KiB
C++

--- electron/atom/app/atom_main.cc.orig 2019-03-16 12:31:37 UTC
+++ electron/atom/app/atom_main.cc
@@ -24,12 +24,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 <unistd.h>
#include <cstdio>
#include "atom/app/atom_library_main.h"
@@ -175,7 +175,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();
@@ -196,7 +196,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();