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

Update build.zig to work with last GLFW update #2737

Merged
merged 1 commit into from
Oct 2, 2022

Conversation

realtradam
Copy link
Sponsor Contributor

The recent GLFW update(9e0e08c) made build.zig no longer work. It would fail compilation by saying that ppoll() was undeclared. Adding the -D_GNU_SOURCE flag to compilation fixes this issue(same fix as this one done on the Makefile: be2328f).

This change was tested and works on Linux(Artix), I have not tested on Windows or MacOS as I do not have either of those platforms.

@raysan5 raysan5 merged commit 62d2283 into raysan5:master Oct 2, 2022
@raysan5
Copy link
Owner

raysan5 commented Oct 2, 2022

@realtradam Thanks for the review! Actually there is a related open issue! Where should the -D_GNU_SOURCE be added? Build system or directly in the source code?

@realtradam
Copy link
Sponsor Contributor Author

@realtradam Thanks for the review! Actually there is a related open issue! Where should the -D_GNU_SOURCE be added? Build system or directly in the source code?

Ah I see, just read through that issue. I don't think I have enough experience here to give any useful advice that wouldn't just be guessing. 😅

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