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/11 19:29:35 UTC

[incubator-nuttx] branch master updated: 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.

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3374772  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.
3374772 is described below

commit 3374772580d75c29ff8e2d6437e7966c5205a435
Author: Gregory Nutt <gn...@nuttx.org>
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>