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/12 15:58:20 UTC

[incubator-nuttx] 02/04: net/tcp/tcp_getsockopt.c: Fix compilation failure found in build testing. Error: invalia application of 'sizeof' to incomplete type 'struct timeval'. Fixed by including sys/time.h. Same problem and same fix as for setsockopt earlier."

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 80fa136634066632c985000519b8ab0e826bbebe
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Sat Jan 11 14:10:29 2020 -0600

    net/tcp/tcp_getsockopt.c:  Fix compilation failure found in build testing.  Error:  invalia application of 'sizeof' to incomplete type 'struct timeval'.  Fixed by including sys/time.h.  Same problem and same fix as for setsockopt earlier."
---
 net/tcp/tcp_getsockopt.c | 1 +
 1 file changed, 1 insertion(+)

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