net/udp: Fix some errors in conditional compilation.

This commit is contained in:
Gregory Nutt
2018-03-30 12:03:34 -06:00
parent a2f237065c
commit 51ee2cdd86
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ struct udp_conn_s
struct iob_queue_s readahead; /* Read-ahead buffering */
#endif
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
#ifdef CONFIG_NET_UDP_WRITE_BUFFERS
/* Write buffering
*
* write_q - The queue of unsent I/O buffers. The head of this
+2
View File
@@ -684,7 +684,9 @@ ssize_t psock_udp_sendto(FAR struct socket *psock, FAR const void *buf,
/* Initialize the write buffer */
memcpy(&wrb->wb_dest, to, tolen);
#ifdef CONFIG_NET_SOCKOPTS
wrb->wb_start = clock_systimer();
#endif
/* Copy the user data into the write buffer. We cannot wait for
* buffer space if the socket was opened non-blocking.