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

Fix build for clang #2088

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix build for clang #2088

wants to merge 1 commit into from

Conversation

Patater
Copy link

@Patater Patater commented Jul 7, 2024

Remove declaring _POSIX_SOURCE manually. Let the compiler take care of this on its own where it can. Additionally, include a missing header file for the definition of struct sockaddr_in, which we need before we can allocate the struct. With these fixes, we can build with Clang 18.1.5, although there are many warnings.

@Patater
Copy link
Author

Patater commented Jul 7, 2024

Build failed on Windows. I've updated the commit to restore the _POSIX_SOURCE defines when building for Windows.

Remove declaring _POSIX_SOURCE manually. Let the compiler take care of
this on its own, except on Windows where the compiler doesn't take care
of this. Additionally, include a missing header file for the definition
of struct sockaddr_in, which we need before we can allocate the struct.
With these fixes, we can build with Clang 18.1.5, although there are
many warnings.
@Patater
Copy link
Author

Patater commented Jul 12, 2024

Rebased on latest master

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