Skip to content

Commit

Permalink
Fix for Zephyr 3.6 with CONFIG_POSIX_API=y
Browse files Browse the repository at this point in the history
  • Loading branch information
dok-net authored and azoitl committed Mar 30, 2024
1 parent d8b4806 commit 3944d8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/zephyr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ CONFIG_NET_CONTEXT_RCVTIMEO=y
CONFIG_POSIX_MAX_FDS=12
CONFIG_NET_MAX_CONTEXTS=16
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y # unset if CONFIG_POSIX_API=y
CONFIG_NET_PROMISCUOUS_MODE=y
# CONFIG_ETH_MCUX_PROMISCUOUS_MODE=y # required by NXP MCUX SOCs
Expand Down
2 changes: 2 additions & 0 deletions src/arch/zephyr/sockhand.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#ifdef CONFIG_POSIX_API
#include <netinet/in.h>
#include <sys/select.h>
#include <unistd.h>
#else
#include <zephyr/posix/netinet/in.h>
#endif
Expand Down

0 comments on commit 3944d8b

Please sign in to comment.