net/socket/accept: fix building with CONFIG_NET_LOCAL_STREAM

This commit is contained in:
Kivilinna 2017-04-03 07:38:23 -06:00 committed by Gregory Nutt
parent ae1265c01e
commit ee4a8336ce

View File

@ -130,7 +130,7 @@ int psock_accept(FAR struct socket *psock, FAR struct sockaddr *addr,
FAR socklen_t *addrlen, FAR struct socket *newsock)
{
int errcode;
#ifdef NET_TCP_HAVE_STACK
#if defined(NET_TCP_HAVE_STACK) || defined(CONFIG_NET_LOCAL_STREAM)
int ret;
#endif