summaryrefslogtreecommitdiff
path: root/lang/hugs/patches/patch-packages_base_cbits_execvpe.c
blob: 0e02ff0cb67904eae9acfa05137ca091dfec2a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-packages_base_cbits_execvpe.c,v 1.2 2015/12/29 23:34:48 dholland Exp $

Don't provide own execvpe if the system already has it.

--- packages/base/cbits/execvpe.c.orig	2014-10-14 12:37:00.000000000 +0000
+++ packages/base/cbits/execvpe.c
@@ -5,7 +5,7 @@
    -------------------------------------------------------------------------- */
 #include "HsBase.h"
 
-#if !(defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)) /* to the end */
+#if !(defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)) && !HAVE_EXECVPE /* to the end */
 
 /* Evidently non-Posix. */
 /* #include "PosixSource.h" */