Try / Tempest

3d graphics engine
MIT License
83 stars 24 forks source link

Porting to FreeBSD: openal-soft 1.22 does not build on FreeBSD #48

Closed raphaelahrens closed 1 year ago

raphaelahrens commented 1 year ago

In version 1.22 of openal-soft they forgot to add an extra include for FreeBSD. It was fixed in this commit https://github.com/kcat/openal-soft/commit/b26ca6b65e703fdc852e451945582f0ed6cc9c35 and improved here https://github.com/kcat/openal-soft/commit/2f3acdff4a568537cf9016404f26b3cf1d0122f2.

I fixed it temporarily with this patch, but an update to 1.23 would be the better option.

+++ b/Engine/thirdparty/openal-soft/core/rtkit.cpp
@@ -41,6 +41,9 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/syscall.h>
+#if defined(__FreeBSD__)
+#include <sys/thr.h>
+#endif
Try commented 1 year ago

Hi, thanks for pointing out. OpenAL is now updated