Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include netinet/in.h everywhere except Windows #949

Merged
merged 1 commit into from
May 27, 2023
Merged

Commits on May 27, 2023

  1. Include netinet/in.h everywhere except Windows

    According to POSIX, sockaddr_in is declared in netinet/in.h.
    Some POSIX systems (notably OpenBSD and FreeBSD) declare it in
    only this header, so including it is required. Others, like Linux,
    are are more lax in exposing symbols to the namespace, providing
    sockaddr_in via additional headers, but it does no harm to include
    the standard header on such systems.
    bentley authored and kelson42 committed May 27, 2023
    Configuration menu
    Copy the full SHA
    df164ae View commit details
    Browse the repository at this point in the history