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