32 lines
903 B
Plaintext
32 lines
903 B
Plaintext
$OpenBSD: patch-packages_base_cbits_execvpe_c,v 1.1 2012/03/23 21:33:45 kili Exp $
|
|
|
|
Don't build the included execvpe().
|
|
|
|
--- packages/base/cbits/execvpe.c.orig Thu Sep 21 00:28:37 2006
|
|
+++ packages/base/cbits/execvpe.c Fri Mar 23 21:36:46 2012
|
|
@@ -5,8 +5,6 @@
|
|
-------------------------------------------------------------------------- */
|
|
#include "HsBase.h"
|
|
|
|
-#if !(defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)) /* to the end */
|
|
-
|
|
/* Evidently non-Posix. */
|
|
/* #include "PosixSource.h" */
|
|
|
|
@@ -16,6 +14,7 @@
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
|
|
+#if 0
|
|
/*
|
|
* We want the search semantics of execvp, but we want to provide our
|
|
* own environment, like execve. The following copyright applies to
|
|
@@ -153,6 +152,7 @@ execvpe(char *name, char *const argv[], char **envp)
|
|
free(buf);
|
|
return (-1);
|
|
}
|
|
+#endif
|
|
|
|
|
|
/* Copied verbatim from ghc/lib/std/cbits/system.c. */
|