summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-25 15:16:45 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-25 15:16:45 +0000
commit798d0d0debae5b8dc0f40844adf18ce14906cfd7 (patch)
tree5b6c0a3274990f70a5bdfb6388ec280ad8ab4204
parent6fbdfa8660b49da4cfdf5e39cc291f613f8c9c5f (diff)
downloadpx4-nuttx-798d0d0debae5b8dc0f40844adf18ce14906cfd7.tar.gz
px4-nuttx-798d0d0debae5b8dc0f40844adf18ce14906cfd7.tar.bz2
px4-nuttx-798d0d0debae5b8dc0f40844adf18ce14906cfd7.zip
Fix a UDP build issue
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4654 42af7a65-404d-4744-a932-0658087f49c3
-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)
{