From 2a6090ce11eaa4e34d5e97af6591f324cd308e0b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 20 Mar 2009 18:53:50 +0000 Subject: Some fixes to build on FreeBSD 7.2 --- srcx/jstart.c | 3 +-- srcx/util.c | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/srcx/jstart.c b/srcx/jstart.c index c61f484..353c579 100644 --- a/srcx/jstart.c +++ b/srcx/jstart.c @@ -146,6 +146,7 @@ static void allocate_address(char* arg, struct jail* j) char *ip; int error, i = 0; + j->version = JAIL_API_VERSION; j->ip4s = j->ip6s = 0; j->ip4 = NULL; j->ip6 = NULL; @@ -164,8 +165,6 @@ static void allocate_address(char* arg, struct jail* j) add_addresses(j, res); freeaddrinfo(res); } - - j->version = JAIL_API_VERSION; } static void free_address(struct jail* j) diff --git a/srcx/util.c b/srcx/util.c index dd0af87..4eeac50 100644 --- a/srcx/util.c +++ b/srcx/util.c @@ -36,6 +36,8 @@ * James E. Quick */ +#include "config.h" + #include #include #include -- cgit v1.2.3