--- CMakeLists.txt.orig	2022-12-28 11:43:59 UTC
+++ CMakeLists.txt
@@ -90,6 +90,7 @@ option ( enable-winmidi "compile Windows MIDI support 
 option ( enable-sdl2 "compile SDL2 audio support (if it is available)" on )
 option ( enable-pulseaudio "compile PulseAudio support (if it is available)" on )
 option ( enable-pipewire "compile PipeWire support (if it is available)" on )
+option ( enable-sndio "compile Sndio support (if it is available)" on )
 option ( enable-readline "compile readline lib line editing (if it is available)" on )
 option ( enable-threads "enable multi-threading support (such as parallel voice synthesis)" on )
 option ( enable-openmp "enable OpenMP support (parallelization of soundfont decoding, vectorization of voice mixing, etc.)" on )
@@ -530,6 +531,11 @@ if ( enable-pulseaudio )
 else ( enable-pulseaudio )
     unset_pkg_config ( PULSE )
 endif ( enable-pulseaudio )
+
+unset ( SNDIO_SUPPORT CACHE )
+if ( enable-sndio )
+    set ( SNDIO_SUPPORT 1 )
+endif ( enable-sndio )
 
 unset ( ALSA_SUPPORT CACHE )
 if ( enable-alsa )
