autotools, cmake: fix the sys/audioio.h checks.

Reference issue: https://github.com/libsdl-org/SDL/issues/13405.
(cherry picked from commit 74df61530f)
This commit is contained in:
Ozkan Sezer committed 2025-07-28 17:01:20 +03:00
1 parent c438953aa2
commit 553ea4e4ee
3 files changed
+10 -9

No files matched your search

+1 -1
View File
@@ -1471,7 +1471,7 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
if(SDL_AUDIO)
if(SYSV5 OR SOLARIS OR HPUX)
# Newer Solaris-based systems, like OpenIndiana, don't have this interface anymore. Check for the header first.
check_include_file(sys/audioio HAVE_SYS_AUDIOIO_H)
check_include_file(sys/audioio.h HAVE_SYS_AUDIOIO_H)
if(HAVE_SYS_AUDIOIO_H)
set(SDL_AUDIO_DRIVER_SUNAUDIO 1)
file(GLOB SUN_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/sun/*.c)