Detect the presence of execvpe() on recent -CURRENT.

This commit is contained in:
Ruslan Ermilov 2008-06-21 20:24:18 +00:00
parent 3f36a29aee
commit 5498b34788
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=215488
3 changed files with 29 additions and 4 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= deco
PORTVERSION= 3.9
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,11 @@
--- configure 1997-07-18 18:48:13.000000000 +0400
+++ configure 2008-06-22 00:21:13.000000000 +0400
@@ -1994,7 +1994,7 @@
fi
-for ac_func in gethostname getgroups opendir memcpy strtol dirfd tcgetattr tcsetpgrp killpg
+for ac_func in gethostname getgroups opendir memcpy strtol dirfd tcgetattr tcsetpgrp killpg execvpe
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2001: checking for $ac_func" >&5

View file

@ -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;