From 224c45c4f2e2e95b514efe10668c9108b4ba81ce Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Thu, 14 Dec 2006 17:33:46 +0000 Subject: [PATCH] s,#if INET6,#ifdef INET6, This unbreaks the build for FAST_IPSEC && !INET6 and was wrong anyway. Reported by: Dmitry Pryanishnikov --- sys/netipsec/ipsec.c | 2 +- sys/netipsec/ipsec_input.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c index 7f604ed3d33..65a53c00685 100644 --- a/sys/netipsec/ipsec.c +++ b/sys/netipsec/ipsec.c @@ -1843,7 +1843,7 @@ inet_ntoa4(struct in_addr ina) char * ipsec_address(union sockaddr_union* sa) { -#if INET6 +#ifdef INET6 char ip6buf[INET6_ADDRSTRLEN]; #endif switch (sa->sa.sa_family) { diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c index ef007ef724e..33685602e3f 100644 --- a/sys/netipsec/ipsec_input.c +++ b/sys/netipsec/ipsec_input.c @@ -277,7 +277,7 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, struct tdb_ident *tdbi; struct secasindex *saidx; int error; -#if INET6 +#ifdef INET6 #ifdef notyet char ip6buf[INET6_ADDRSTRLEN]; #endif