From 9569965cf19eb165349e803d3fd514930c837ef0 Mon Sep 17 00:00:00 2001
From: Stephen Paul Weber <singpolyma@singpolyma.net>
Date: Tue, 11 Dec 2012 19:26:55 -0500
Subject: [PATCH] execvpe exists on QNX
---
cbits/execvpe.c | 2 ++
include/execvpe.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/cbits/execvpe.c b/cbits/execvpe.c
index 1d96aa5..6ce1e9d 100644
|
a
|
b
|
|
| 10 | 10 | #endif |
| 11 | 11 | |
| 12 | 12 | #if !(defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)) /* to the end */ |
| | 13 | #ifndef __QNXNTO__ |
| 13 | 14 | |
| 14 | 15 | /* Evidently non-Posix. */ |
| 15 | 16 | /* #include "PosixSource.h" */ |
| … |
… |
|
| 157 | 158 | free(buf); |
| 158 | 159 | return (-1); |
| 159 | 160 | } |
| | 161 | #endif |
| 160 | 162 | |
| 161 | 163 | |
| 162 | 164 | /* Copied verbatim from ghc/lib/std/cbits/system.c. */ |
diff --git a/include/execvpe.h b/include/execvpe.h
index 676fc72..c3b2dd3 100644
|
a
|
b
|
|
| 19 | 19 | #endif |
| 20 | 20 | |
| 21 | 21 | #if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_WIN32) |
| | 22 | #ifndef __QNXNTO__ |
| 22 | 23 | extern int execvpe(char *name, char *const argv[], char **envp); |
| | 24 | #endif |
| 23 | 25 | extern void pPrPr_disableITimers (void); |
| 24 | 26 | #endif |
| 25 | 27 | |