From be1551dd6584be876f52b09dad1a6d4cc4ba10a0 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 20 Mar 2009 18:22:48 +0000 Subject: Allow compilation on older versions of FreeBSD. --- srcx/util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'srcx') diff --git a/srcx/util.c b/srcx/util.c index ffea8ff..dd0af87 100644 --- a/srcx/util.c +++ b/srcx/util.c @@ -120,14 +120,16 @@ jails_next (jails *jls) case 2: xp = xp + 1; break; +#ifdef JAIL_MULTIADDR case 3: data = (unsigned char*)(xp + 1); data += (xp->pr_ip4s * sizeof(struct in_addr)); data += (xp->pr_ip6s * sizeof(struct in6_addr)); xp = (struct xprison*)data; break; +#endif default: - errx(1, "unknown jail structure"); + errx(1, "unknown version of jail structure: %d", xp->pr_version); break; } } -- cgit v1.2.3