diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 5adbb212f8..29ce31c1ad 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 2414b69ab0..5477e29ebc 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) {