$NetBSD: patch-aa,v 1.4 2007/12/01 13:03:27 rillig Exp $ --- tcpdpriv.c.orig 2000-04-18 09:59:19.000000000 +0200 +++ tcpdpriv.c 2007-12-01 14:02:20.000000000 +0100 @@ -90,7 +90,7 @@ #include #endif -#if !defined(sun) +#if 0 #include #if !defined(osf1) #include @@ -111,6 +111,10 @@ #include +#if defined(__NetBSD__) && (__NetBSD_Version__ >= 299000900) /* NetBSD 2.99.9 */ +#define statfs statvfs +#endif + /* * deal with systems in which bpf_int32 and bpf_u_int32 are not defined */ @@ -2491,10 +2495,10 @@ dlt_hdrlen(int dlt) } } +static void usage(char *cmd); static void verify_and_print_args(char *cmd) { - static void usage(char *cmd); lookup_init(&addr_propagate); @@ -2759,7 +2763,7 @@ usage(char *cmd) int main(int argc, char *argv[], char *envp[]) { - void bpf_dump(FILE *output, struct bpf_program *, int); + void my_bpf_dump(FILE *output, struct bpf_program *, int); char *copy_argv(register char **argv); char *read_infile(char *fname); char *rfile, *wfile; @@ -2903,7 +2907,7 @@ main(int argc, char *argv[], char *envp[ /* dump? */ if (dflag) { - bpf_dump(stderr, &fcode, dflag); + my_bpf_dump(stderr, &fcode, dflag); exit(0); }