diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c index 81b74c3158f5..d1fc74bba12b 100644 --- a/sys/contrib/pf/net/pf.c +++ b/sys/contrib/pf/net/pf.c @@ -302,7 +302,11 @@ static __inline int pf_state_compare(struct pf_tree_node *, struct pf_state_tree tree_lan_ext, tree_ext_gwy; RB_GENERATE(pf_state_tree, pf_tree_node, entry, pf_state_compare); +#if defined(__FreeBSD__) +static int +#else static __inline int +#endif pf_state_compare(struct pf_tree_node *a, struct pf_tree_node *b) { int diff; diff --git a/sys/contrib/pf/net/pf_norm.c b/sys/contrib/pf/net/pf_norm.c index 8f597d864980..f5607cee96e3 100644 --- a/sys/contrib/pf/net/pf_norm.c +++ b/sys/contrib/pf/net/pf_norm.c @@ -227,7 +227,11 @@ pf_normalize_init(void) TAILQ_INIT(&pf_cachequeue); } +#if defined(__FreeBSD__) +static int +#else static __inline int +#endif pf_frag_compare(struct pf_fragment *a, struct pf_fragment *b) { int diff;