diff --git a/misc/deco/patches/patch-cap_c b/misc/deco/patches/patch-cap_c new file mode 100644 index 00000000000..07014a92114 --- /dev/null +++ b/misc/deco/patches/patch-cap_c @@ -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 ++#include + #if HAVE_UNISTD_H + # include + #endif diff --git a/misc/deco/patches/patch-com_c b/misc/deco/patches/patch-com_c new file mode 100644 index 00000000000..9d69b7b01b6 --- /dev/null +++ b/misc/deco/patches/patch-com_c @@ -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 + #include ++#include + #include + #include + #if HAVE_UNISTD_H diff --git a/misc/deco/patches/patch-configure b/misc/deco/patches/patch-configure index 269e724e5a2..353db4d9b3f 100644 --- a/misc/deco/patches/patch-configure +++ b/misc/deco/patches/patch-configure @@ -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 diff --git a/misc/deco/patches/patch-edit_c b/misc/deco/patches/patch-edit_c new file mode 100644 index 00000000000..7b4e08e4270 --- /dev/null +++ b/misc/deco/patches/patch-edit_c @@ -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 ++#include + #include "deco.h" + #include "scr.h" + #include "rec.h" diff --git a/misc/deco/patches/patch-help_c b/misc/deco/patches/patch-help_c index c672c30b707..43251895996 100644 --- a/misc/deco/patches/patch-help_c +++ b/misc/deco/patches/patch-help_c @@ -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 + #if HAVE_UNISTD_H + # include + #endif +@@ -10,7 +11,7 @@ #define CS 34 #define HELPDIR "/usr/lib/deco/help/" diff --git a/misc/deco/patches/patch-hexview_c b/misc/deco/patches/patch-hexview_c new file mode 100644 index 00000000000..e06bc81ce7e --- /dev/null +++ b/misc/deco/patches/patch-hexview_c @@ -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 + #if HAVE_UNISTD_H + # include + #endif diff --git a/misc/deco/patches/patch-main_c b/misc/deco/patches/patch-main_c index 682ce293113..3d90be7fec5 100644 --- a/misc/deco/patches/patch-main_c +++ b/misc/deco/patches/patch-main_c @@ -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 ++#include + #include + #include + #include +@@ -103,7 +104,7 @@ static void execute (void); static void docmdreg (int c); static void doscrreg (int c); diff --git a/misc/deco/patches/patch-menu_c b/misc/deco/patches/patch-menu_c index a4fcf65df66..8d386293642 100644 --- a/misc/deco/patches/patch-menu_c +++ b/misc/deco/patches/patch-menu_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 +#include #include "deco.h" #include "scr.h" diff --git a/misc/deco/patches/patch-run_c b/misc/deco/patches/patch-run_c new file mode 100644 index 00000000000..62eefe21a07 --- /dev/null +++ b/misc/deco/patches/patch-run_c @@ -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, ...) + { diff --git a/misc/deco/patches/patch-view_c b/misc/deco/patches/patch-view_c index a3b24012e18..7e54bcfa219 100644 --- a/misc/deco/patches/patch-view_c +++ b/misc/deco/patches/patch-view_c @@ -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 +#include #include "deco.h" #include "scr.h"