NuttX icon indicating copy to clipboard operation
NuttX copied to clipboard

feat(libc): add netdb core API support

Open MDLZCOOL opened this issue 3 months ago • 1 comments

  • Added LIBC_NETDB_CORE config option to enable minimal netdb core API
  • Updated netdb.h header file to conditionally compile related functions based on configuration

Summary

Introduced a minimal netdb core API controlled by the new LIBC_NETDB_CORE config option.
This allows enabling essential netdb functions without requiring the full netdb implementation.

Impact

  • Existing builds are not affected unless LIBC_NETDB_CORE is explicitly enabled.
  • Ensures conditional compilation to avoid unnecessary code inclusion.

Testing

  • Verified successful build with LIBC_NETDB_CORE enabled and disabled.
  • Checked that related functions in netdb.h are correctly included/excluded based on the configuration.

MDLZCOOL avatar Sep 17 '25 09:09 MDLZCOOL

This can fix PX4/PX4-Autopilot#25540 and PX4/PX4-Autopilot#24273.

MDLZCOOL avatar Sep 17 '25 09:09 MDLZCOOL