openbsd-ports/lang/ghc/patches/patch-libraries_process_include_runProcess_h
kili 8f1fe8440c Using vfork(2) is evil, but adding a line like
#define fork vfork

and then apparently call fork (in cbits/runProcess.c, IIRC) is
even worse.

This patch appears to `fix' (or hide?) the ENODEV errors spotted
by landry@ during bulk builds.

A complete GHC update will follow soon, so there's no reason for a bump.
2011-06-30 21:25:17 +00:00

22 lines
459 B
Plaintext

$OpenBSD: patch-libraries_process_include_runProcess_h,v 1.1 2011/06/30 21:25:17 kili Exp $
vfork is for terrorists
--- libraries/process/include/runProcess.h.orig Mon Jun 13 19:10:12 2011
+++ libraries/process/include/runProcess.h Wed Jun 22 12:29:23 2011
@@ -25,14 +25,6 @@
#include <fcntl.h>
#endif
-#ifdef HAVE_VFORK_H
-#include <vfork.h>
-#endif
-
-#ifdef HAVE_VFORK
-#define fork vfork
-#endif
-
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif