Skip to content

Conversation

@heinwessels
Copy link
Contributor

There is a chance that a previous declaration exists of socklen_t through the unistd.h header. Luckily that header defines a macro when it defines the type. This commit therefore uses that define to know if the type has already been declared or not, similar to what unistd.h does.

Closes #57195

There is a chance that a previous declaration exists of socklen_t
through the unistd.h header. Luckily that header defines a macro
when it defines the type. This commit therefore uses that define to
know if the type has already been declared or not, similar to what
unistd.h does.

Closes zephyrproject-rtos#57195

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
@carlescufi carlescufi merged commit 6c934ab into zephyrproject-rtos:main Apr 25, 2023
@heinwessels heinwessels deleted the net-native-posix-64 branch May 9, 2023 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiler error when building C++ application with native_posix_64 and Zephyr sockets

5 participants