aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nimrod/no-posix-spawn-usevfork.patch
diff options
context:
space:
mode:
authorEivind Uggedal <eivind@uggedal.com>2014-05-07 12:05:55 +0000
committerEivind Uggedal <eivind@uggedal.com>2014-05-07 12:06:16 +0000
commitc4eb3bed53bb58376f314489840b349eb589e3ec (patch)
tree68611f44743fc56b28aa6bccbe30d5118d1d24fc /testing/nimrod/no-posix-spawn-usevfork.patch
parent36ccefdc9ad5f1e8558201c3ca2eaa0a1bf48d42 (diff)
downloadaports-c4eb3bed53bb58376f314489840b349eb589e3ec.tar.bz2
aports-c4eb3bed53bb58376f314489840b349eb589e3ec.tar.xz
testing/nimrod: new aport
Diffstat (limited to 'testing/nimrod/no-posix-spawn-usevfork.patch')
-rw-r--r--testing/nimrod/no-posix-spawn-usevfork.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/nimrod/no-posix-spawn-usevfork.patch b/testing/nimrod/no-posix-spawn-usevfork.patch
new file mode 100644
index 0000000000..ebd820ba3d
--- /dev/null
+++ b/testing/nimrod/no-posix-spawn-usevfork.patch
@@ -0,0 +1,27 @@
+diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim
+index e206447cc57a..302263f724e8 100644
+--- a/lib/posix/posix.nim
++++ b/lib/posix/posix.nim
+@@ -846,7 +846,7 @@ var
+ FE_UPWARD* {.importc, header: "<fenv.h>".}: cint
+ FE_DFL_ENV* {.importc, header: "<fenv.h>".}: cint
+
+-when not defined(haiku):
++when false:
+ var
+ MM_HARD* {.importc, header: "<fmtmsg.h>".}: cint
+ ## Source of the condition is hardware.
+diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
+index 6e250f9d547a..bc21f963e73f 100644
+--- a/lib/pure/osproc.nim
++++ b/lib/pure/osproc.nim
+@@ -722,8 +722,7 @@ elif not defined(useNimRtl):
+ chck posix_spawnattr_setsigmask(attr, mask)
+ chck posix_spawnattr_setpgroup(attr, 0'i32)
+
+- chck posix_spawnattr_setflags(attr, POSIX_SPAWN_USEVFORK or
+- POSIX_SPAWN_SETSIGMASK or
++ chck posix_spawnattr_setflags(attr, POSIX_SPAWN_SETSIGMASK or
+ POSIX_SPAWN_SETPGROUP)
+
+ if not data.optionPoParentStreams: