summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-12-18 20:52:20 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-12-18 20:52:20 +0000
commit7168c12f51a9721e6f551a62b3239ea35f6f82f7 (patch)
tree0d49209331b1b62d268e85204a7a32ba0e256c6b /sys
parent0cc666d0d03a3d8516d8af5b2df77707a31fe33d (diff)
Unbreak compile with no pfsync(4) device.
patch from Max Laier
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pf_ioctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index faaf255fead..128343165bb 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.92 2003/12/15 09:10:26 henning Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.93 2003/12/18 20:52:19 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1209,7 +1209,9 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
pf_purge_expired_states();
pf_status.states = 0;
splx(s);
+#if NPFSYNC
pfsync_clear_states(pf_status.hostid);
+#endif
break;
}