mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
remove use of syscall(2) from mono. Thanks brynet@ for finding the
location in mini-posix.c. ok brynet@, op@, robert@ (maintainer)
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ COMMENT= cross platform, open source .NET developement framework
|
||||
V= 6.12.0.199
|
||||
|
||||
DISTNAME= mono-${V}
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
|
||||
CATEGORIES= lang devel
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
use fork(2) instead of syscall (SYS_fork)
|
||||
|
||||
Index: mono/mini/mini-posix.c
|
||||
--- mono/mini/mini-posix.c.orig
|
||||
+++ mono/mini/mini-posix.c
|
||||
@@ -940,7 +940,7 @@ fork_crash_safe (void)
|
||||
#if defined(HOST_ANDROID)
|
||||
/* SYS_fork is defined to be __NR_fork which is not defined in some ndk versions */
|
||||
g_assert_not_reached ();
|
||||
-#elif !defined(HOST_DARWIN) && defined(SYS_fork)
|
||||
+#elif defined(__linux__) && defined(SYS_fork)
|
||||
pid = (pid_t) syscall (SYS_fork);
|
||||
#elif HAVE_FORK
|
||||
pid = (pid_t) fork ();
|
||||
Reference in New Issue
Block a user