From: kn Date: Sat, 12 Nov 2022 02:48:14 +0000 (+0000) Subject: Put pf_state_import() under NPFSYNC>0 to fix build without pfsync X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6e91a17356d7291d5b254e7ac9c3db558e697e3e;p=openbsd Put pf_state_import() under NPFSYNC>0 to fix build without pfsync --- diff --git a/sys/net/pf.c b/sys/net/pf.c index 43b40a33f21..4203911ea60 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.1152 2022/11/11 16:12:08 dlg Exp $ */ +/* $OpenBSD: pf.c,v 1.1153 2022/11/12 02:48:14 kn Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1302,6 +1302,7 @@ pf_state_alloc_scrub_memory(const struct pfsync_state_peer *s, return (0); } +#if NPFSYNC > 0 int pf_state_import(const struct pfsync_state *sp, int flags) { @@ -1511,6 +1512,7 @@ pf_state_import(const struct pfsync_state *sp, int flags) } return (error); } +#endif /* NPFSYNC > 0 */ /* END state table stuff */