diff options
author | ru <ru@FreeBSD.org> | 2005-12-05 11:58:35 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-12-05 11:58:35 +0000 |
commit | 9b19d72862ec030327b619472a0fdd12ace7a4c0 (patch) | |
tree | 10fbb6249e1553ff873a2885f2937b146e545698 /sys/contrib/pf | |
parent | 6bc69ac5efced12523ecf09740467f0e992166c5 (diff) | |
download | FreeBSD-src-9b19d72862ec030327b619472a0fdd12ace7a4c0.zip FreeBSD-src-9b19d72862ec030327b619472a0fdd12ace7a4c0.tar.gz |
Fix -Wundef warnings found when compiling i386 LINT, GENERIC and
custom kernels.
Diffstat (limited to 'sys/contrib/pf')
-rw-r--r-- | sys/contrib/pf/net/if_pflog.c | 11 | ||||
-rw-r--r-- | sys/contrib/pf/net/if_pfsync.c | 11 | ||||
-rw-r--r-- | sys/contrib/pf/net/pf.c | 16 | ||||
-rw-r--r-- | sys/contrib/pf/net/pf_ioctl.c | 16 | ||||
-rw-r--r-- | sys/contrib/pf/net/pf_norm.c | 4 |
5 files changed, 58 insertions, 0 deletions
diff --git a/sys/contrib/pf/net/if_pflog.c b/sys/contrib/pf/net/if_pflog.c index 1466ec2..671ea26 100644 --- a/sys/contrib/pf/net/if_pflog.c +++ b/sys/contrib/pf/net/if_pflog.c @@ -46,8 +46,19 @@ #elif __FreeBSD__ >= 5 #include "opt_bpf.h" #include "opt_pf.h" + +#ifdef DEV_BPF #define NBPFILTER DEV_BPF +#else +#define NBPFILTER 0 +#endif + +#ifdef DEV_PFLOG #define NPFLOG DEV_PFLOG +#else +#define NPFLOG 0 +#endif + #endif #include <sys/param.h> diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c index e7f80e2..2c7f10c 100644 --- a/sys/contrib/pf/net/if_pfsync.c +++ b/sys/contrib/pf/net/if_pfsync.c @@ -38,8 +38,19 @@ #elif __FreeBSD__ >= 5 #include "opt_bpf.h" #include "opt_pf.h" + +#ifdef DEV_BPF #define NBPFILTER DEV_BPF +#else +#define NBPFILTER 0 +#endif + +#ifdef DEV_PFSYNC #define NPFSYNC DEV_PFSYNC +#else +#define NPFSYNC 0 +#endif + #endif #include <sys/param.h> diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c index c552d82..e68fa5d 100644 --- a/sys/contrib/pf/net/pf.c +++ b/sys/contrib/pf/net/pf.c @@ -44,10 +44,26 @@ #ifdef __FreeBSD__ #include "opt_bpf.h" #include "opt_pf.h" + +#ifdef DEV_BPF #define NBPFILTER DEV_BPF +#else +#define NBPFILTER 0 +#endif + +#ifdef DEV_PFLOG #define NPFLOG DEV_PFLOG +#else +#define NPFLOG 0 +#endif + +#ifdef DEV_PFSYNC #define NPFSYNC DEV_PFSYNC #else +#define NPFSYNC 0 +#endif + +#else #include "bpfilter.h" #include "pflog.h" #include "pfsync.h" diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c index 3fa72a9..1141b2f 100644 --- a/sys/contrib/pf/net/pf_ioctl.c +++ b/sys/contrib/pf/net/pf_ioctl.c @@ -44,10 +44,26 @@ #ifdef __FreeBSD__ #include "opt_bpf.h" #include "opt_pf.h" + +#ifdef DEV_BPF #define NBPFILTER DEV_BPF +#else +#define NBPFILTER 0 +#endif + +#ifdef DEV_PFLOG #define NPFLOG DEV_PFLOG +#else +#define NPFLOG 0 +#endif + +#ifdef DEV_PFSYNC #define NPFSYNC DEV_PFSYNC #else +#define NPFSYNC 0 +#endif + +#else #include "bpfilter.h" #include "pflog.h" #include "pfsync.h" diff --git a/sys/contrib/pf/net/pf_norm.c b/sys/contrib/pf/net/pf_norm.c index 50ce270..34aea84 100644 --- a/sys/contrib/pf/net/pf_norm.c +++ b/sys/contrib/pf/net/pf_norm.c @@ -30,8 +30,12 @@ #include "opt_inet.h" #include "opt_inet6.h" #include "opt_pf.h" +#ifdef DEV_PFLOG #define NPFLOG DEV_PFLOG #else +#define NPFLOG 0 +#endif +#else #include "pflog.h" #endif |