* use libc execvpe()
* include missing prototypes
This commit is contained in:
parent
c9562a7f2d
commit
e772a3c041
11
misc/deco/patches/patch-cap_c
Normal file
11
misc/deco/patches/patch-cap_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-cap_c,v 1.1 2012/03/23 21:08:09 naddy Exp $
|
||||
--- cap.c.orig Fri Mar 23 22:01:28 2012
|
||||
+++ cap.c Fri Mar 23 22:01:46 2012
|
||||
@@ -19,6 +19,7 @@
|
||||
/* #define DEBUG */
|
||||
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#if HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
10
misc/deco/patches/patch-com_c
Normal file
10
misc/deco/patches/patch-com_c
Normal file
@ -0,0 +1,10 @@
|
||||
$OpenBSD: patch-com_c,v 1.1 2012/03/23 21:08:09 naddy Exp $
|
||||
--- com.c.orig Fri Mar 23 22:02:21 2012
|
||||
+++ com.c Fri Mar 23 22:02:37 2012
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <sys/ioctl.h>
|
||||
#if HAVE_UNISTD_H
|
@ -1,6 +1,15 @@
|
||||
$OpenBSD: patch-configure,v 1.1 2002/03/21 09:59:48 form Exp $
|
||||
--- configure.orig Fri Jul 18 21:48:13 1997
|
||||
+++ configure Thu Mar 21 15:23:54 2002
|
||||
$OpenBSD: patch-configure,v 1.2 2012/03/23 21:08:09 naddy Exp $
|
||||
--- configure.orig Fri Jul 18 16:48:13 1997
|
||||
+++ configure Fri Mar 23 21:59:54 2012
|
||||
@@ -1994,7 +1994,7 @@ fi
|
||||
|
||||
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
|
||||
@@ -2092,14 +2092,14 @@ else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
|
9
misc/deco/patches/patch-edit_c
Normal file
9
misc/deco/patches/patch-edit_c
Normal file
@ -0,0 +1,9 @@
|
||||
$OpenBSD: patch-edit_c,v 1.1 2012/03/23 21:08:09 naddy Exp $
|
||||
--- edit.c.orig Fri Mar 23 22:02:54 2012
|
||||
+++ edit.c Fri Mar 23 22:03:03 2012
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include "deco.h"
|
||||
#include "scr.h"
|
||||
#include "rec.h"
|
@ -1,7 +1,12 @@
|
||||
$OpenBSD: patch-help_c,v 1.2 2002/04/24 11:27:20 form Exp $
|
||||
--- help.c.orig Sun Jul 13 01:54:34 1997
|
||||
+++ help.c Wed Apr 24 18:27:02 2002
|
||||
@@ -10,7 +10,7 @@
|
||||
$OpenBSD: patch-help_c,v 1.3 2012/03/23 21:08:09 naddy Exp $
|
||||
--- help.c.orig Sat Jul 12 20:54:34 1997
|
||||
+++ help.c Fri Mar 23 22:03:21 2012
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <string.h>
|
||||
#if HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
@@ -10,7 +11,7 @@
|
||||
|
||||
#define CS 34
|
||||
#define HELPDIR "/usr/lib/deco/help/"
|
||||
|
8
misc/deco/patches/patch-hexview_c
Normal file
8
misc/deco/patches/patch-hexview_c
Normal file
@ -0,0 +1,8 @@
|
||||
$OpenBSD: patch-hexview_c,v 1.1 2012/03/23 21:08:09 naddy Exp $
|
||||
--- hexview.c.orig Fri Mar 23 22:03:36 2012
|
||||
+++ hexview.c Fri Mar 23 22:03:45 2012
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <string.h>
|
||||
#if HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
@ -1,7 +1,13 @@
|
||||
$OpenBSD: patch-main_c,v 1.1 2002/03/21 09:59:48 form Exp $
|
||||
--- main.c.orig Tue Dec 29 02:16:43 1998
|
||||
+++ main.c Thu Mar 21 15:23:54 2002
|
||||
@@ -103,7 +103,7 @@ static void execute (void);
|
||||
$OpenBSD: patch-main_c,v 1.2 2012/03/23 21:08:09 naddy Exp $
|
||||
--- main.c.orig Mon Dec 28 21:16:43 1998
|
||||
+++ main.c Fri Mar 23 22:04:01 2012
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -103,7 +104,7 @@ static void execute (void);
|
||||
static void docmdreg (int c);
|
||||
static void doscrreg (int c);
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
$OpenBSD: patch-menu_c,v 1.1 2002/03/21 09:59:48 form Exp $
|
||||
--- menu.c.orig Sun Jul 13 00:53:25 1997
|
||||
+++ menu.c Thu Mar 21 15:23:54 2002
|
||||
@@ -1,3 +1,4 @@
|
||||
$OpenBSD: patch-menu_c,v 1.2 2012/03/23 21:08:09 naddy Exp $
|
||||
--- menu.c.orig Sat Jul 12 19:53:25 1997
|
||||
+++ menu.c Fri Mar 23 22:04:21 2012
|
||||
@@ -1,3 +1,5 @@
|
||||
+#include <string.h>
|
||||
+#include <time.h>
|
||||
#include "deco.h"
|
||||
#include "scr.h"
|
||||
|
19
misc/deco/patches/patch-run_c
Normal file
19
misc/deco/patches/patch-run_c
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-run_c,v 1.1 2012/03/23 21:08:09 naddy Exp $
|
||||
--- run.c.orig Fri Mar 23 21:56:54 2012
|
||||
+++ run.c Fri Mar 23 21:57:30 2012
|
||||
@@ -58,6 +58,7 @@ void runcancel ()
|
||||
free (arg);
|
||||
}
|
||||
|
||||
+#if !HAVE_EXECVPE
|
||||
static char *execat (char *s1, char *s2, char *si)
|
||||
{
|
||||
register char *s;
|
||||
@@ -127,6 +128,7 @@ retry: (void) execve (fname, argv, envstr);
|
||||
errno = EACCES;
|
||||
return (-1);
|
||||
}
|
||||
+#endif /* !HAVE_EXECVPE */
|
||||
|
||||
int runl (int silent, char *name, ...)
|
||||
{
|
@ -1,7 +1,8 @@
|
||||
$OpenBSD: patch-view_c,v 1.1 2002/03/21 09:59:48 form Exp $
|
||||
--- view.c.orig Sun Jul 13 00:53:25 1997
|
||||
+++ view.c Thu Mar 21 15:23:54 2002
|
||||
@@ -1,3 +1,4 @@
|
||||
$OpenBSD: patch-view_c,v 1.2 2012/03/23 21:08:09 naddy Exp $
|
||||
--- view.c.orig Sat Jul 12 19:53:25 1997
|
||||
+++ view.c Fri Mar 23 22:04:41 2012
|
||||
@@ -1,3 +1,5 @@
|
||||
+#include <string.h>
|
||||
+#include <time.h>
|
||||
#include "deco.h"
|
||||
#include "scr.h"
|
||||
|
Loading…
Reference in New Issue
Block a user