summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
Diffstat (limited to 'srcx')
-rw-r--r--srcx/jstart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/srcx/jstart.c b/srcx/jstart.c
index 353c579..ca9319d 100644
--- a/srcx/jstart.c
+++ b/srcx/jstart.c
@@ -124,7 +124,7 @@ static void add_addresses(struct jail *j, struct addrinfo *all)
memcpy(j->ip4 + j->ip4s, &((struct sockaddr_in*)res->ai_addr)->sin_addr, sizeof (*(j->ip4)));
++j->ip4s;
break;
-#ifdef INET6
+#ifdef HAVE_INET6
case AF_INET6:
j->ip6 = realloc(j->ip6, sizeof (*(j->ip6)) * (j->ip6s + 1));
if(j->ip6 == NULL)
@@ -132,7 +132,7 @@ static void add_addresses(struct jail *j, struct addrinfo *all)
memcpy(j->ip6 + j->ip6s, &((struct sockaddr_in6*)res->ai_addr)->sin6_addr, sizeof (*(j->ip6)));
++j->ip6s;
break;
-#endif /* INET6 */
+#endif /* HAVE_INET6 */
default:
errx(1, "Address family %d not supported", res->ai_family);
}