Skip to content

zephyr: Include required posix headers directly#1412

Merged
dNechita merged 1 commit intoanalogdevicesinc:mainfrom
MaureenHelm:zephyr-posix-headers
Mar 19, 2026
Merged

zephyr: Include required posix headers directly#1412
dNechita merged 1 commit intoanalogdevicesinc:mainfrom
MaureenHelm:zephyr-posix-headers

Conversation

@MaureenHelm
Copy link
Contributor

PR Description

Historically, zephyr/net/socket.h included posix headers, but a recent refactoring in mainline zephyr (zephyrproject-rtos/zephyr#99169) changed this behavior to avoid circular dependency issues. Prepare for the upcoming zephyr v4.4 release by including all the required posix headers directly rather than relying on zephyr/net/socket.h to include them. This change is backward compatible and doesn't need to wait for the zephyr v4.4 release. Tested on the native_sim board with zephyr v4.3.0 and zephyr commit 4ebb22e7109.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have commented new code, particularly complex or unclear areas
  • I have checked that I did not introduce new warnings or errors (CI output)
  • I have checked that components that use libiio did not get broken
  • I have updated the documentation accordingly (GitHub Pages, READMEs, etc)

Historically, zephyr/net/socket.h included posix headers, but a recent
refactoring in mainline zephyr changed this behavior to avoid circular
dependency issues. Prepare for the upcoming zephyr v4.4 release by
including all the required posix headers directly rather than relying on
zephyr/net/socket.h to include them. This change is backward compatible
and doesn't need to wait for the zephyr v4.4 release. Tested on the
native_sim board with zephyr v4.3.0 and zephyr commit 4ebb22e7109.

Signed-off-by: Maureen Helm <[email protected]>
Copy link
Contributor

@dNechita dNechita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@dNechita dNechita merged commit 4f4332c into analogdevicesinc:main Mar 19, 2026
30 of 31 checks passed
@MaureenHelm MaureenHelm deleted the zephyr-posix-headers branch March 19, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants