summaryrefslogtreecommitdiff
path: root/net/tcpview/files/patch-gencode.c
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2003-10-27 20:25:47 +0000
committerMax Khon <fjoe@FreeBSD.org>2003-10-27 20:25:47 +0000
commit03e79f6d24eb8d67f3965e97075cc8a12d26173d (patch)
tree2f31108720cd422c4ac969bf662141bb32dff0d9 /net/tcpview/files/patch-gencode.c
parentChange the MASTER_SITE to its http-variant. Add WWW to pkg-descr. (diff)
Fix build on -CURRENT.
Bump port revision.
Diffstat (limited to 'net/tcpview/files/patch-gencode.c')
-rw-r--r--net/tcpview/files/patch-gencode.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/tcpview/files/patch-gencode.c b/net/tcpview/files/patch-gencode.c
new file mode 100644
index 000000000000..46d985fe5039
--- /dev/null
+++ b/net/tcpview/files/patch-gencode.c
@@ -0,0 +1,30 @@
+--- gencode.c.orig Fri Apr 23 04:40:01 1993
++++ gencode.c Tue Oct 28 02:03:44 2003
+@@ -36,7 +36,7 @@
+ #include <net/bpf.h>
+
+ #ifdef TCPVIEW
+-#include <varargs.h>
++#include <stdarg.h>
+ #include <setjmp.h>
+ static jmp_buf env;
+ #define error parse_error
+@@ -97,10 +97,15 @@
+ static int cur_chunk;
+
+ #ifdef TCPVIEW
+-void parse_error(va_alist)
+- va_dcl
++extern eprintv(char *cp, va_list ap);
++
++void parse_error(char *cp, ...)
+ {
+- eprint(va_alist);
++ va_list ap;
++
++ va_start(ap, cp);
++ eprintv(cp, ap);
++ va_end(ap);
+ longjmp(env,1);
+ }
+ #endif