Commit cc04902
net: slnetsock: do not require posix to define SlNetSock_Timeval_t
Previously, the header `<ti/net/slnetsock.h>` was forward-declaring a
typed struct when deprecated and nonexistent Kconfig options were not
present. This caused a compile error when building
`sample.net.sockets.http_get.offload.simplelink` because struct timeval
was not defined in a non-standard header.
Since the offload driver must exist whether or not the applciation
has enabled POSIX, and struct timeval is POSIX, simply define the
SlNetSock_Timeval_t typed structure whether or not POSIX is enabled using
ANSI/ISO C types.
In this case, `long` was chosen to match the wordsize of whatever
architecture is being built.
Signed-off-by: Chris Friedt <[email protected]>1 parent d062844 commit cc04902
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 194 | | |
204 | 195 | | |
205 | 196 | | |
| |||
646 | 637 | | |
647 | 638 | | |
648 | 639 | | |
649 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
650 | 644 | | |
651 | 645 | | |
652 | 646 | | |
| |||
0 commit comments