diff --git a/net/socket/sendto.c b/net/socket/sendto.c index a0350f11a5..02cb929295 100644 --- a/net/socket/sendto.c +++ b/net/socket/sendto.c @@ -162,7 +162,7 @@ ssize_t psock_sendto(FAR struct socket *psock, FAR const void *buf, break; #endif -#ifdef CONFIG_NET_IPv6 +#ifdef CONFIG_NET_LOCAL case AF_LOCAL: minlen = sizeof(sa_family_t); break;