mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
Unix domain: Fix a typo and some missing conditional compilation
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user