ports/56164: emulators/dlx: fix build on -CURRENT (varargs -> stdargs in embedded tcl)

Michael Edenfield kutulu at kutulu.org
Fri Aug 29 23:10:10 UTC 2003


>Number:         56164
>Category:       ports
>Synopsis:       emulators/dlx: fix build on -CURRENT (varargs -> stdargs in embedded tcl)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 29 16:10:07 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael Edenfield
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD wombat.localnet 5.1-CURRENT FreeBSD 5.1-CURRENT #7: Sun Aug 24 21:35:57 EDT 2003 root at wombat.localnet:/usr/obj/usr/src/sys/ATHLON i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

--- dlx.patch begins here ---
diff -urN dlx.orig/files/patch-ad dlx/files/patch-ad
--- dlx.orig/files/patch-ad	Wed Dec 31 19:00:00 1969
+++ dlx/files/patch-ad	Fri Aug 29 18:50:26 2003
@@ -0,0 +1,35 @@
+--- dlxsim/tcl/panic.c.orig	Fri Aug 29 18:38:56 2003
++++ dlxsim/tcl/panic.c	Fri Aug 29 18:41:19 2003
+@@ -19,7 +19,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <varargs.h>
++#include <stdarg.h>
+ 
+ /*
+  *----------------------------------------------------------------------
+@@ -39,19 +39,18 @@
+ 
+ #ifndef lint
+ void
+-panic(va_alist)
+-    va_dcl			/* char *format, then any number of additional
++panic(char *format, ...)
++    				/* char *format, then any number of additional
+ 				 * values to be printed under the control of
+ 				 * format.  This is all just the same as you'd
+ 				 * pass to printf. */
+ {
+-    char *format;
+     va_list args;
+ 
+-    va_start(args);
+-    format = va_arg(args, char *);
++    va_start(args, format);
+     (void) vfprintf(stderr, format, args);
+     (void) fflush(stderr);
++    va_end(args);
+     abort();
+ }
+ #else
--- dlx.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list