summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/ChangeLog2
-rw-r--r--nuttx/net/recvfrom.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index 5adbb212f..29ce31c1a 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -2679,4 +2679,6 @@
Rx DMA into a circular buffer (contributed by Mike Smith)
* configs/pic32mx7mmb: Beginning of a configuration for the Mikroelektronka
PIC32MX7 Multimedia Board (MMB).
+ * net/recvfrom.c: Fix a compilation problem. Some UDP logic was conditioned
+ on TCP, not UDP.
diff --git a/nuttx/net/recvfrom.c b/nuttx/net/recvfrom.c
index 2414b69ab..5477e29eb 100644
--- a/nuttx/net/recvfrom.c
+++ b/nuttx/net/recvfrom.c
@@ -229,7 +229,7 @@ static inline void recvfrom_newtcpdata(FAR struct uip_driver_s *dev,
*
****************************************************************************/
-#ifdef CONFIG_NET_TCP
+#ifdef CONFIG_NET_UDP
static inline void recvfrom_newudpdata(FAR struct uip_driver_s *dev,
FAR struct recvfrom_s *pstate)
{