1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/emulators/dlx/files/patch-ad
Kirill Ponomarev b6e8095b06 - Fix build on -current (varargs -> stdargs in embedded tcl)
PR:		56164
Submitted by:	Michael Edenfield <kutulu@kutulu.org>
2003-08-29 23:18:56 +00:00

36 lines
861 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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