aboutsummaryrefslogtreecommitdiff
path: root/sys/netipsec/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netipsec/key.c')
-rw-r--r--sys/netipsec/key.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index b2791fac2eff..418bf3bc4bce 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -758,8 +758,9 @@ static struct spdcache_entry *spdcache_entry_alloc(
const struct secpolicyindex *spidx,
struct secpolicy *policy);
static void spdcache_entry_free(struct spdcache_entry *entry);
+#ifdef VIMAGE
static void spdcache_destroy(void);
-
+#endif
#define DBG_IPSEC_INITREF(t, p) do { \
refcount_init(&(p)->refcnt, 1); \
@@ -8282,6 +8283,7 @@ spdcache_clear(void)
}
}
+#ifdef VIMAGE
void
spdcache_destroy(void)
{
@@ -8297,7 +8299,7 @@ spdcache_destroy(void)
free(V_spdcache_lock, M_IPSEC_SPDCACHE);
}
}
-
+#endif
void
key_init(void)
{