mkxp-z/subprojects/packagefiles/openal-soft-setschedparam.patch
刘皓 74f4c0e714
Downgrade OpenAL Soft from 1.24.2 to 1.23.1 in libretro builds
OpenAL Soft 1.24 introduces a lot of code that doesn't work well with
the PlayStation 3 homebrew toolchain, and also the old version of the
Wii U homebrew toolchain currently used by the libretro buildbot.
Instead of maintaining a bunch of patches to get 1.24 to work on these
toolchains, I think it'd be easier to just use 1.23.
2025-04-08 14:27:20 -04:00

13 lines
551 B
Diff

# Stops OpenAL Soft from trying to get realtime priority because Emscripten doesn't support all the necessary APIs and this will result in compilation errors when targeting Emscripten.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -565,7 +565,7 @@ if(NOT WIN32)
set(LINKER_FLAGS ${LINKER_FLAGS} -pthread)
endif()
- check_symbol_exists(pthread_setschedparam pthread.h HAVE_PTHREAD_SETSCHEDPARAM)
+
# Some systems need pthread_np.h to get pthread_setname_np
check_include_files("pthread.h;pthread_np.h" HAVE_PTHREAD_NP_H)