From f1e682bfbe19c54781576b88e63ebc753c54054d Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 25 Apr 2012 15:16:45 +0000 Subject: [PATCH] Fix a UDP build issue git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4654 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 2 ++ net/recvfrom.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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) {