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