mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +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();
|
pkt_initialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_NET_UDP
|
#ifdef CONFIG_NET_LOCAL
|
||||||
/* Initialize the local, "Unix domain" socket support */
|
/* Initialize the local, "Unix domain" socket support */
|
||||||
|
|
||||||
local_initialize();
|
local_initialize();
|
||||||
|
|||||||
@@ -143,6 +143,7 @@ ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len,
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_NET_TCP) || defined(CONFIG_NET_LOCAL)
|
||||||
case SOCK_STREAM:
|
case SOCK_STREAM:
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_NET_LOCAL
|
#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 */
|
#endif /* CONFIG_NET_TCP */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#endif /* CONFIG_NET_TCP || CONFIG_NET_LOCAL */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user