Skip to content

Include netinet/in.h explicitly for struct sockaddr_in - #333

Merged
shikokuchuo merged 2 commits into
mainfrom
freebsd-netinet-in
Jul 22, 2026
Merged

Include netinet/in.h explicitly for struct sockaddr_in#333
shikokuchuo merged 2 commits into
mainfrom
freebsd-netinet-in

Conversation

@shikokuchuo

@shikokuchuo shikokuchuo commented Jul 22, 2026

Copy link
Copy Markdown
Member

Fixes #332.

POSIX says <arpa/inet.h> may make the <netinet/in.h> symbols visible. This is the case on glibc and macOS, but is not strictly portable.

@shikokuchuo
shikokuchuo merged commit 509ca47 into main Jul 22, 2026
24 checks passed
@shikokuchuo
shikokuchuo deleted the freebsd-netinet-in branch July 22, 2026 18:10
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.

Compilation failure on FreeBSD

1 participant