Fix VIMAGE build.

This commit is contained in:
ae 2012-04-05 04:41:06 +00:00
parent 0adb91c0ac
commit 333953a424

View File

@ -794,7 +794,11 @@ pfsync_state_import(struct pfsync_state *sp, u_int8_t flags)
timeout = r->timeout[sp->timeout];
if (!timeout)
#ifdef __FreeBSD__
timeout = V_pf_default_rule.timeout[sp->timeout];
#else
timeout = pf_default_rule.timeout[sp->timeout];
#endif
/* sp->expire may have been adaptively scaled by export. */
st->expire -= timeout - ntohl(sp->expire);