Unix domain: A few more bugfixes
This commit is contained in:
parent
ca2102febb
commit
b76db036da
|
@ -164,7 +164,7 @@ ssize_t psock_local_recvfrom(FAR struct socket *psock, FAR void *buf,
|
||||||
* incoming FIFO for read-only access.
|
* incoming FIFO for read-only access.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (conn->lc_type != LOCAL_STATE_CONNECTED ||
|
if (conn->lc_state != LOCAL_STATE_CONNECTED ||
|
||||||
conn->lc_infd < 0)
|
conn->lc_infd < 0)
|
||||||
{
|
{
|
||||||
ndbg("ERROR: not connected\n");
|
ndbg("ERROR: not connected\n");
|
||||||
|
|
|
@ -38,7 +38,8 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET_TCP)
|
#if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0 && \
|
||||||
|
(defined(CONFIG_NET_TCP) || defined(CONFIG_NET_LOCAL))
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
@ -313,4 +314,4 @@ errout:
|
||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_NET && CONFIG_NSOCKET_DESCRIPTORS && CONFIG_NET_TCP */
|
#endif /* CONFIG_NET && CONFIG_NSOCKET_DESCRIPTORS && (CONFIG_NET_TCP || CONFIG_NET_LOCAL) */
|
||||||
|
|
Loading…
Reference in New Issue