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

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

commit 440451f5998ae3b49451e1a3ef4c1a03af7b40e5
Author: Gregory Nutt <[email protected]>
AuthorDate: Sat Jan 11 13:21:51 2020 -0600

    net/tcp/tcp_setsockopt.c:  Fix compilation failure found in build testing.  
Error:  invalia application of 'sizeof' to incomplete type 'struct timeval'.  
Fixed by including sys/time.h.
---
 net/tcp/tcp_setsockopt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/tcp/tcp_setsockopt.c b/net/tcp/tcp_setsockopt.c
index 449463c..1569b24 100644
--- a/net/tcp/tcp_setsockopt.c
+++ b/net/tcp/tcp_setsockopt.c
@@ -39,6 +39,7 @@
 
 #include <nuttx/config.h>
 
+#include <sys/time.h>
 #include <stdint.h>
 #include <errno.h>
 #include <assert.h>

Reply via email to