-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
including <net/socket.h> fails with redefinition of 'struct zsock_timeval' (sometimes :-) ) #41503
Comments
I found, that the failing c-file includes |
I use now HAVE_SYS_TIME_H in my files to exclude the header. |
may be related #41543 |
The header |
@boaks I've submitted #41916 with my proposal to address the issue. The core problem was Another thing is that I don't really see a reason for the socket layer to provide its own definition |
#41916 works for me. |
Should I close the issue? |
No need to, GH will close it automatically once the fix is actually merged. |
I'm using nRFConnect 1.8.0 and zephyr v2.7.0-ncs1.
If I include
<net/socket.h>
always as the first, then some files compile well, and some reportsThe files are added to the project with
both file use the same first include
For one, it works, for the other it fails. If I remove the failing from the project, the build finishes.
That is very irritating. Has someone similar experience?
The text was updated successfully, but these errors were encountered: