Skip to content

Conversation

@HedongGao
Copy link
Contributor

Summary

When the CONFIG_NET_SOCKOPTS, CONFIG_NET_TIMESTAMP, and CONFIG_NET_UDP_NO_STACK configuration options are enabled and the CONFIG_NET_UDP configuration option is disabled, a compilation error is generated. Modifications have been made to address the aforementioned issues.

inet/inet_sockif.c:772:40: error: invalid use of undefined type ‘struct udp_conn_s’ 772 | *(FAR int *)value = (conn->timestamp != 0); | ^~ inet/inet_sockif.c: In function ‘inet_set_socketlevel_option’: inet/inet_sockif.c:1081:19: error: invalid use of undefined type ‘struct udp_conn_s’ 1081 | conn->timestamp = (*((FAR int *)value) != 0);

Impact

No modifications have been made to the functionality, so it will not affect the system.

Testing

As mentioned above, with the above configuration, modifying the code and recompiling, the problem will no longer recur.

fix compilation issues

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
@github-actions github-actions bot added Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small labels Dec 26, 2025
@HedongGao HedongGao requested a review from acassis December 29, 2025 11:34
@xiaoxiang781216 xiaoxiang781216 merged commit ea31cea into apache:master Dec 29, 2025
75 of 77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants