summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-03-20 18:53:50 +0000
committerStef Walter <stef@memberwebs.com>2009-03-20 18:53:50 +0000
commit2a6090ce11eaa4e34d5e97af6591f324cd308e0b (patch)
tree44b844e623a30bb21e4dd485aa514a812138244f
parentbe1551dd6584be876f52b09dad1a6d4cc4ba10a0 (diff)
Some fixes to build on FreeBSD 7.2
-rw-r--r--srcx/jstart.c3
-rw-r--r--srcx/util.c2
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 <jq@quick.com>
*/
+#include "config.h"
+
#include <sys/types.h>
#include <sys/param.h>
#include <sys/proc.h>