mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
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!
35 lines
1.2 KiB
C++
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();
|