Skip to content

illumos/SunOS: fix gethostbyname_r signature and link socket/nsl#73

Open
rcbellN51 wants to merge 1 commit intotaganaka:masterfrom
rcbellN51:master
Open

illumos/SunOS: fix gethostbyname_r signature and link socket/nsl#73
rcbellN51 wants to merge 1 commit intotaganaka:masterfrom
rcbellN51:master

Conversation

@rcbellN51
Copy link

@rcbellN51 rcbellN51 commented Jan 7, 2026

This fixes build and link failures on illumos/OpenIndiana:

  • Use the correct gethostbyname_r() signature for __sun || __illumos__
  • Link socket and nsl when building on SunOS (CMAKE_SYSTEM_NAME == "SunOS")

Guards ensure no behavior changes for Linux or macOS.

Tested on OpenIndiana (illumos).

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.

1 participant