diff --git a/net/inet/inet_sockif.c b/net/inet/inet_sockif.c index 1078ec79d11..87cb2bdba86 100644 --- a/net/inet/inet_sockif.c +++ b/net/inet/inet_sockif.c @@ -62,6 +62,8 @@ * Private Function Prototypes ****************************************************************************/ +#if defined(NET_UDP_HAVE_STACK) || defined(NET_TCP_HAVE_STACK) + static int inet_setup(FAR struct socket *psock, int protocol); static sockcaps_t inet_sockcaps(FAR struct socket *psock); static void inet_addref(FAR struct socket *psock); @@ -1289,6 +1291,8 @@ static ssize_t inet_sendfile(FAR struct socket *psock, } #endif +#endif /* NET_UDP_HAVE_STACK || NET_TCP_HAVE_STACK */ + /**************************************************************************** * Public Functions ****************************************************************************/