Skip to content

Conversation

@nicosmd
Copy link
Contributor

@nicosmd nicosmd commented Sep 3, 2025

This PR improves cross-platform compatibility by conditionally using the AI_ADDRCONFIG flag only when it's available on the target system.

What Changed

  • Added conditional compilation guards (#ifdef AI_ADDRCONFIG) around AI_ADDRCONFIG usage in src/addr.c and src/ice.c
  • This ensures the code compiles and runs correctly on systems that don't define this flag (like QNX)

Why This Matters

The AI_ADDRCONFIG flag isn't universally available across all platforms. Without these guards, compilation would fail on systems like QNX that don't provide this flag.

@paullouisageneau paullouisageneau merged commit 69e2367 into paullouisageneau:master Sep 11, 2025
3 checks passed
@nicosmd nicosmd deleted the qnx-compatibility branch September 11, 2025 14:26
paullouisageneau added a commit that referenced this pull request Sep 22, 2025
set AI_ADDRCONF hint only if exists
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