aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2003-07-26 06:36:42 +0800
committerkrion <krion@FreeBSD.org>2003-07-26 06:36:42 +0800
commit67a3a8e4b5304e4679de59ba2e3125029bb2e771 (patch)
tree3733bd135d6f25ef32e0ef615ffd3d400ea1edff /net
parentefdc281f057f44273b27fcec8b851877815b77f2 (diff)
downloadfreebsd-ports-graphics-67a3a8e4b5304e4679de59ba2e3125029bb2e771.tar.gz
freebsd-ports-graphics-67a3a8e4b5304e4679de59ba2e3125029bb2e771.tar.zst
freebsd-ports-graphics-67a3a8e4b5304e4679de59ba2e3125029bb2e771.zip
Fix build on -current
PR: 54871 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> Approved by: fjoe (mentor) (implicit)
Diffstat (limited to 'net')
-rw-r--r--net/sup/files/patch-quit.c25
-rw-r--r--net/sup/files/patch-run.c43
2 files changed, 58 insertions, 10 deletions
diff --git a/net/sup/files/patch-quit.c b/net/sup/files/patch-quit.c
new file mode 100644
index 00000000000..85356a4a42c
--- /dev/null
+++ b/net/sup/files/patch-quit.c
@@ -0,0 +1,25 @@
+--- quit.c.orig Fri Jul 25 23:20:04 2003
++++ quit.c Fri Jul 25 23:22:08 2003
+@@ -50,17 +50,15 @@
+ */
+
+ #include <stdio.h>
+-#include <varargs.h>
++#include <stdarg.h>
+
+-quit (status, fmt, va_alist)
+-int status;
+-char *fmt;
+-va_dcl
++quit (char *fmt,...)
+ {
++ int status;
++ char *fmt;
+ va_list args;
+-
+ fflush(stdout);
+- va_start(args);
++ va_start(args,fmt);
+ (void) vfprintf(stderr, fmt, args);
+ va_end(args);
+ exit(status);
diff --git a/net/sup/files/patch-run.c b/net/sup/files/patch-run.c
index d57f77daf69..7caf075f680 100644
--- a/net/sup/files/patch-run.c
+++ b/net/sup/files/patch-run.c
@@ -1,23 +1,46 @@
---- run.c.orig Fri Aug 20 20:46:33 1993
-+++ run.c Fri Oct 25 10:23:26 2002
-@@ -95,6 +95,7 @@
+--- run.c.orig Sat Aug 21 02:46:33 1993
++++ run.c Fri Jul 25 23:23:43 2003
+@@ -94,18 +94,17 @@
+ #include <stdio.h>
#include <signal.h>
#include <sys/wait.h>
- #include <varargs.h>
+-#include <varargs.h>
++#include <stdarg.h>
+#define MAXARGS 100
static int dorun();
-@@ -123,10 +124,14 @@
+-int run (name,va_alist)
+-char *name;
+-va_dcl
++int run (char *name,...)
+ {
+ int val;
+ va_list ap;
+
+- va_start(ap);
++ va_start(ap,name);
+ val = runv (name,ap);
+ va_end(ap);
+ return(val);
+@@ -117,16 +116,18 @@
+ return (dorun (name, argv, 0));
+ }
+
+-int runp (name,va_alist)
+-char *name;
+-va_dcl
++int runp (char *name,...)
{
int val;
va_list ap;
-
+- va_start(ap);
+- val = runvp (name,ap);
+ char *args[MAXARGS];
+ int argno=0;
+
- va_start(ap);
-- val = runvp (name,ap);
++ va_start(ap,name);
+ while (argno < MAXARGS
+ && (args[argno++] = va_arg(ap, char *)) != (char *)0);
va_end(ap);
@@ -25,7 +48,7 @@
return (val);
}
-@@ -144,7 +149,7 @@
+@@ -144,7 +145,7 @@
int wpid;
register int pid;
struct sigvec ignoresig,intsig,quitsig;
@@ -34,7 +57,7 @@
int execvp(), execv();
int (*execrtn)() = usepath ? execvp : execv;
-@@ -165,7 +170,7 @@
+@@ -165,7 +166,7 @@
sigvec (SIGINT,&ignoresig,&intsig);
sigvec (SIGQUIT,&ignoresig,&quitsig);
do {
@@ -43,7 +66,7 @@
if (WIFSTOPPED (status)) {
kill (0,SIGTSTP);
wpid = 0;
-@@ -174,8 +179,8 @@
+@@ -174,8 +175,8 @@
sigvec (SIGINT,&intsig,0); /* restore signals */
sigvec (SIGQUIT,&quitsig,0);