Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! I'm working on updating a GZDoom port to Haiku OS which is currently stuck at 3.8.2.
This patch (partially authored by @threedeyes) adds a bunch of small checks needed to get GZDoom (and Raze, but that one needs a couple more tweaks) compiled and working on Haiku and shouldn't affect any other OS.
To be honest, aside from upstreaming parts of our patch, the main reason I'm opening this PR is to ask for some guidance in getting the port completed: the binaries work, games run and all of that, buuut... the Launcher included freezes for some time when starting GZDoom with no parameters. (It does display fine eventually)

What could be causing this? Am I missing some libraries? What's the code for the launcher? Is there anything I could tweak in the code to prevent this issue?
The only other mention I could find of the launcher freezing is in this bug report for 4.12: #2597
If you need some information on how it is compiled and on libraries used you can check the recipe for it (an automated build script)
"BUILD_REQUIRES" are the libraries loaded when compiling, while the build commands are in the "BUILD()" section.
Also, let me know if you want a similar PR to be made for Raze's sources, as those compile on Haiku as well (tho they suffer from a couple bugs ingame unfortunately)