Unix domain: Fix a typo and some missing conditional compilation
This commit is contained in:
parent
b4a67285f1
commit
6a1bfc9594
@ -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:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user