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 20:20:10 UTC
[incubator-nuttx] branch master updated: 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 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 bb5ad4d 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."
bb5ad4d is described below
commit bb5ad4df237a6c68807c695faa2972fa52132b91
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>