diff options
author | Max Khon <fjoe@FreeBSD.org> | 2003-10-27 20:25:47 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2003-10-27 20:25:47 +0000 |
commit | 03e79f6d24eb8d67f3965e97075cc8a12d26173d (patch) | |
tree | 2f31108720cd422c4ac969bf662141bb32dff0d9 /net/tcpview/files/patch-gencode.c | |
parent | Change 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.c | 30 |
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 |