diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-04-06 15:12:50 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-04-06 15:12:50 +0000 |
commit | 3c891e9b96bf94d385f78d5398a309e58ce8969d (patch) | |
tree | 84ff5b1f94432131f9ad386486eee6e16d8d7dd8 /sys | |
parent | 2e9bac6578ccbe6e579e76bb291a0baf57fc3488 (diff) | |
download | FreeBSD-src-3c891e9b96bf94d385f78d5398a309e58ce8969d.zip FreeBSD-src-3c891e9b96bf94d385f78d5398a309e58ce8969d.tar.gz |
Make pf* modules respect NOINET6 from make.conf(5) in order to build them
for INET6-less kernel.
Requested by: many
Approved by: bms(mentor)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/modules/pf/Makefile | 4 | ||||
-rw-r--r-- | sys/modules/pflog/Makefile | 4 | ||||
-rw-r--r-- | sys/modules/pfsync/Makefile | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/sys/modules/pf/Makefile b/sys/modules/pf/Makefile index 3bceb08..3968f47 100644 --- a/sys/modules/pf/Makefile +++ b/sys/modules/pf/Makefile @@ -19,7 +19,11 @@ opt_inet.h: echo "#define INET 1" > opt_inet.h opt_inet6.h: +.if defined(NOINET6) + echo > opt_inet6.h +.else echo "#define INET6 1" > opt_inet6.h +.endif opt_bpf.h: echo "#define DEV_BPF 1" > opt_bpf.h diff --git a/sys/modules/pflog/Makefile b/sys/modules/pflog/Makefile index f500846..1eb46e9 100644 --- a/sys/modules/pflog/Makefile +++ b/sys/modules/pflog/Makefile @@ -17,7 +17,11 @@ opt_inet.h: echo "#define INET 1" > opt_inet.h opt_inet6.h: +.if defined(NOINET6) + echo > opt_inet6.h +.else echo "#define INET6 1" > opt_inet6.h +.endif opt_bpf.h: echo "#define DEV_BPF 1" > opt_bpf.h diff --git a/sys/modules/pfsync/Makefile b/sys/modules/pfsync/Makefile index 9cb7b18..23f79e2 100644 --- a/sys/modules/pfsync/Makefile +++ b/sys/modules/pfsync/Makefile @@ -17,7 +17,11 @@ opt_inet.h: echo "#define INET 1" > opt_inet.h opt_inet6.h: +.if defined(NOINET6) + echo > opt_inet6.h +.else echo "#define INET6 1" > opt_inet6.h +.endif opt_bpf.h: echo "#define DEV_BPF 1" > opt_bpf.h |