aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-07-18 12:21:26 +0800
committerkan <kan@FreeBSD.org>2003-07-18 12:21:26 +0800
commitb28e753f406a3b9084fe9f33a94d69c6b942b8b9 (patch)
tree94b26de54846f91728f6ab3029c327c6423de1b0 /comms
parent0bd631cf26517617f6fc767c1ef4fcd454ae9534 (diff)
downloadfreebsd-ports-gnome-b28e753f406a3b9084fe9f33a94d69c6b942b8b9.tar.gz
freebsd-ports-gnome-b28e753f406a3b9084fe9f33a94d69c6b942b8b9.tar.zst
freebsd-ports-gnome-b28e753f406a3b9084fe9f33a94d69c6b942b8b9.zip
Unbreak for GCC 3.3 by converting to stdarg.h and eliminating
varargs.h consumers.
Diffstat (limited to 'comms')
-rw-r--r--comms/ecu/files/patch-ae31
-rw-r--r--comms/ecu/files/patch-af32
2 files changed, 63 insertions, 0 deletions
diff --git a/comms/ecu/files/patch-ae b/comms/ecu/files/patch-ae
new file mode 100644
index 000000000000..472ba07e48d2
--- /dev/null
+++ b/comms/ecu/files/patch-ae
@@ -0,0 +1,31 @@
+--- pprintf.c.orig Fri Jul 18 00:04:43 2003
++++ pprintf.c Fri Jul 18 00:06:19 2003
+@@ -40,7 +40,7 @@
+ #if !defined(BUILDING_PROTOTYPES)
+
+ #include <stdio.h>
+-#include <varargs.h>
++#include <stdarg.h>
+
+ /* This must be a typedef not a #define! */
+ typedef char *pointer;
+@@ -50,9 +50,7 @@
+ pprintf(format,va_alist)
+ --------------------------------------------------------------------------*/
+ void
+-pprintf(format, va_alist)
+-char *format;
+-va_dcl
++pprintf(char *format, ...)
+ {
+ va_list args;
+ char c;
+@@ -62,7 +60,7 @@
+ char accum_string[ACCUM_MAX_ALLOWABLE + 1024]; /* fairly fail-safe */
+ char *dp = accum_string;
+
+- va_start(args);
++ va_start(args, format);
+
+ tempfmt[0] = '%';
+ while (c = *format++)
diff --git a/comms/ecu/files/patch-af b/comms/ecu/files/patch-af
new file mode 100644
index 000000000000..fd91bb604e58
--- /dev/null
+++ b/comms/ecu/files/patch-af
@@ -0,0 +1,32 @@
+--- logevent.c.orig Thu Aug 27 15:50:54 1998
++++ logevent.c Fri Jul 18 00:04:31 2003
+@@ -28,7 +28,7 @@
+ #include <sys/locking.h>
+ #endif
+
+-#include <varargs.h>
++#include <stdarg.h>
+
+ /* This must be a typedef not a #define! */
+ typedef char *pointer;
+@@ -74,10 +74,7 @@
+ vlogevent(pid,format,va_alist)
+ --------------------------------------------------------------------------*/
+ void
+-vlogevent(pid, format, va_alist)
+-int pid;
+-char *format;
+-va_dcl
++vlogevent(int pid, char *format, ...)
+ {
+ va_list args;
+ char c;
+@@ -86,7 +83,7 @@
+ char accum_string[256];
+ char *dp = accum_string;
+
+- va_start(args);
++ va_start(args, format);
+
+ tempfmt[0] = '%';
+ while (c = *format++)