diff options
author | Stef Walter <stef@memberwebs.com> | 2009-03-20 18:22:48 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-03-20 18:22:48 +0000 |
commit | be1551dd6584be876f52b09dad1a6d4cc4ba10a0 (patch) | |
tree | b2d9477a36101f53f0dfddf226dfa8d9984f281f | |
parent | a2a3fc52e5e0e71047fd3cb9783e97deeb4bea7f (diff) |
Allow compilation on older versions of FreeBSD.
-rw-r--r-- | srcx/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } } |