diff options
author | glebius <glebius@FreeBSD.org> | 2014-02-12 09:59:48 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-02-12 09:59:48 +0000 |
commit | 02cb746956a63297f09cf799fffa2fc95119236b (patch) | |
tree | 942bb8147d0bc325ba7cfcd60b4cf1a179d6442b /sbin/ipfw | |
parent | 25d59f119cec731ecb10ac4b7e740e2e637dba07 (diff) | |
download | FreeBSD-src-02cb746956a63297f09cf799fffa2fc95119236b.zip FreeBSD-src-02cb746956a63297f09cf799fffa2fc95119236b.tar.gz |
Fix world build WITHOUT_PF.
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sbin/ipfw')
-rw-r--r-- | sbin/ipfw/Makefile | 10 | ||||
-rw-r--r-- | sbin/ipfw/ipfw2.h | 5 |
2 files changed, 13 insertions, 2 deletions
diff --git a/sbin/ipfw/Makefile b/sbin/ipfw/Makefile index b25f38c..6aea26b 100644 --- a/sbin/ipfw/Makefile +++ b/sbin/ipfw/Makefile @@ -1,8 +1,16 @@ # $FreeBSD$ +.include <bsd.own.mk> + PROG= ipfw -SRCS= ipfw2.c dummynet.c ipv6.c main.c nat.c altq.c +SRCS= ipfw2.c dummynet.c ipv6.c main.c nat.c WARNS?= 2 + +.if ${MK_PF} != "no" +SRCS+= altq.c +CFLAGS+=-DPF +.endif + DPADD= ${LIBUTIL} LDADD= -lutil MAN= ipfw.8 diff --git a/sbin/ipfw/ipfw2.h b/sbin/ipfw/ipfw2.h index 2c70bbd..6e895b8 100644 --- a/sbin/ipfw/ipfw2.h +++ b/sbin/ipfw/ipfw2.h @@ -268,11 +268,14 @@ void ipfw_flush(int force); void ipfw_zero(int ac, char *av[], int optname); void ipfw_list(int ac, char *av[], int show_counters); +#ifdef PF /* altq.c */ void altq_set_enabled(int enabled); u_int32_t altq_name_to_qid(const char *name); - void print_altq_cmd(struct _ipfw_insn_altq *altqptr); +#else +#define NO_ALTQ +#endif /* dummynet.c */ void dummynet_list(int ac, char *av[], int show_counters); |