summaryrefslogtreecommitdiff
path: root/misc/deco/files/patch-run.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2008-06-21 20:24:18 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2008-06-21 20:24:18 +0000
commit5498b34788bddfe3d5f3e66c0850ae1e11a37c82 (patch)
tree382aeee3457ddf86fad8d695efd4ed2b5dba1b9f /misc/deco/files/patch-run.c
parentSmall terminal emulator. The only dependencies are Vte and Gtk2 libs. (diff)
Detect the presence of execvpe() on recent -CURRENT.
Notes
Notes: svn path=/head/; revision=215488
Diffstat (limited to 'misc/deco/files/patch-run.c')
-rw-r--r--misc/deco/files/patch-run.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/misc/deco/files/patch-run.c b/misc/deco/files/patch-run.c
index 0f2fcd6a7360..ecebd04a9e35 100644
--- a/misc/deco/files/patch-run.c
+++ b/misc/deco/files/patch-run.c
@@ -1,6 +1,20 @@
---- run.c Wed Mar 7 19:37:47 2001
-+++ run.c Sun Dec 5 22:51:12 2004
-@@ -136,10 +136,22 @@
+--- run.c 2001-03-07 20:37:47.000000000 +0300
++++ run.c 2008-06-22 00:17:05.000000000 +0400
+@@ -77,6 +77,7 @@
+ return (*s1 ? ++s1 : 0);
+ }
+
++#if !HAVE_EXECVPE
+ static int execvpe (char *name, char **argv, char **envstr)
+ {
+ static char *pathstr;
+@@ -131,15 +132,28 @@
+ errno = EACCES;
+ return (-1);
+ }
++#endif
+
+ int runl (int silent, char *name, ...)
{
va_list ap;
int err;