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

add OpenBSD support #379

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

add OpenBSD support #379

wants to merge 1 commit into from

Conversation

omar-polo
Copy link

Hello,

as per title, this pr fixes some issues found when trying to build bits of embree code vendored in Godot on OpenBSD.

  • I'm adding an implementation of max and min for longs because size_t and ssize_t are typedef'd to long and it fails in parallel_partition.h due to an ambiguous call otherwise;
  • OpenBSD doesn't have pthread_getaffinity_np in pthread_np.h; use sysctl like macos and android then.
  • regarding sysinfo... I'm just faking it. There isn't any API to get the path to the current executable, save argv[0] if you need it.

we kept these patches in for building the Godot package for a while (see here and here.)

bob-beck pushed a commit to openbsd/ports that referenced this pull request Aug 5, 2022
it's a maintainance release, see the announcement:

	https://godotengine.org/article/maintenance-release-godot-3-4-5

While here regen patches and add links to upstream PRs:

 - "unbreak OS_Unix::get_executable_path() on OpenBSD"
   godotengine/godot#61540

 - "add OpenBSD support" RenderKit/embree#379
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.

None yet

1 participant