diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-28 11:48:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-28 11:48:23 -0600 |
commit | 6e111d89c0a3f39a4703fc1b744c60a292629f82 (patch) | |
tree | d9c78141308659ad820445a79dd29808f373f9c4 | |
parent | f7c989443ed00f8e432d53071dc765a2f7f22e21 (diff) | |
download | nuttx-6e111d89c0a3f39a4703fc1b744c60a292629f82.tar.gz nuttx-6e111d89c0a3f39a4703fc1b744c60a292629f82.tar.bz2 nuttx-6e111d89c0a3f39a4703fc1b744c60a292629f82.zip |
Unix domain: Fix a typo and some missing conditional compilation
-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: { |