You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/01/22 15:27:42 UTC

[incubator-nuttx] branch pr146 updated: net/tcp: Fix errors found in build testing.

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch pr146
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/pr146 by this push:
     new 15c8920  net/tcp: Fix errors found in build testing.
15c8920 is described below

commit 15c892062e1827aa69aeef37c84df4308dd7ea51
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Wed Jan 22 09:19:28 2020 -0600

    net/tcp: Fix errors found in build testing.
    
    Recent re-organization moved some functions from net/inet to net/tcp and net/udp.  This include references to nxsem_wait(), SEM_PRIO_NONE, and other internal NuttX semaphore functions.  These all failed to compile because nuttx/semaphore.h was not included in any of the files.
---
 Kconfig                | 2 +-
 net/tcp/tcp_close.c    | 1 +
 net/tcp/tcp_recvfrom.c | 1 +
 net/udp/udp_recvfrom.c | 1 +
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Kconfig b/Kconfig
index 25fa1f8..7128897 100644
--- a/Kconfig
+++ b/Kconfig
@@ -66,7 +66,7 @@ config WINDOWS_NATIVE
 		Build natively in a CMD.exe environment with Windows style paths
 		(like C:\cgywin\home)
 
-		This Windows native build is complete and available, but not often
+		The Windows native build is complete and available, but not often
 		used or verified.  As a consequence, it cannot be assured to be
 		fully functional at any given time.  Hence, it is marked here as
 		EXPERIMENTAL so that the end user will be aware of this state.
diff --git a/net/tcp/tcp_close.c b/net/tcp/tcp_close.c
index d326c3e..d295603 100644
--- a/net/tcp/tcp_close.c
+++ b/net/tcp/tcp_close.c
@@ -44,6 +44,7 @@
 #include <debug.h>
 #include <assert.h>
 
+#include <nuttx/semaphore.h>
 #include <nuttx/net/net.h>
 #include <nuttx/net/netdev.h>
 #include <nuttx/net/tcp.h>
diff --git a/net/tcp/tcp_recvfrom.c b/net/tcp/tcp_recvfrom.c
index e3aa345..dba3acf 100644
--- a/net/tcp/tcp_recvfrom.c
+++ b/net/tcp/tcp_recvfrom.c
@@ -45,6 +45,7 @@
 #include <debug.h>
 #include <assert.h>
 
+#include <nuttx/semaphore.h>
 #include <nuttx/net/net.h>
 #include <nuttx/mm/iob.h>
 #include <nuttx/net/netdev.h>
diff --git a/net/udp/udp_recvfrom.c b/net/udp/udp_recvfrom.c
index 3060162..7a320a7 100644
--- a/net/udp/udp_recvfrom.c
+++ b/net/udp/udp_recvfrom.c
@@ -45,6 +45,7 @@
 #include <debug.h>
 #include <assert.h>
 
+#include <nuttx/semaphore.h>
 #include <nuttx/net/net.h>
 #include <nuttx/mm/iob.h>
 #include <nuttx/net/netdev.h>