1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
$NetBSD: patch-aa,v 1.3 2006/03/01 22:49:07 wiz Exp $
--- tcpdpriv.c.orig 2000-04-18 07:59:19.000000000 +0000
+++ tcpdpriv.c
@@ -90,7 +90,7 @@
#include <arpa/nameser.h>
#endif
-#if !defined(sun)
+#if 0
#include <net/slcompress.h>
#if !defined(osf1)
#include <net/slip.h>
@@ -111,6 +111,10 @@
#include <pcap.h>
+#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
*/
@@ -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);
}
|