diff options
-rw-r--r-- | nuttx/net/net_initialize.c | 2 | ||||
-rw-r--r-- | nuttx/net/socket/send.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/net/net_initialize.c b/nuttx/net/net_initialize.c index 469270577..3fee0f4a1 100644 --- a/nuttx/net/net_initialize.c +++ b/nuttx/net/net_initialize.c @@ -129,7 +129,7 @@ void net_initialize(void) pkt_initialize(); #endif -#ifdef CONFIG_NET_UDP +#ifdef CONFIG_NET_LOCAL /* Initialize the local, "Unix domain" socket support */ local_initialize(); diff --git a/nuttx/net/socket/send.c b/nuttx/net/socket/send.c index 6ac569cb1..d40705e59 100644 --- a/nuttx/net/socket/send.c +++ b/nuttx/net/socket/send.c @@ -143,6 +143,7 @@ ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len, break; #endif +#if defined(CONFIG_NET_TCP) || defined(CONFIG_NET_LOCAL) case SOCK_STREAM: { #ifdef CONFIG_NET_LOCAL @@ -164,6 +165,7 @@ ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len, #endif /* CONFIG_NET_TCP */ } break; +#endif /* CONFIG_NET_TCP || CONFIG_NET_LOCAL */ default: { |