--- src/CMakeLists.txt.orig	2022-12-28 11:43:59 UTC
+++ src/CMakeLists.txt
@@ -25,6 +25,11 @@ if ( PULSE_SUPPORT )
   set ( fluid_pulse_SOURCES drivers/fluid_pulse.c )
 endif ( PULSE_SUPPORT )
 
+if ( SNDIO_SUPPORT )
+  set ( fluid_sndio_SOURCES drivers/fluid_sndio.c )
+  set ( SNDIO_LIBRARIES sndio )
+endif ( SNDIO_SUPPORT )
+
 if ( ALSA_SUPPORT )
   set ( fluid_alsa_SOURCES drivers/fluid_alsa.c )
 endif ( ALSA_SUPPORT )
@@ -245,6 +250,7 @@ add_library ( libfluidsynth-OBJ OBJECT
     ${fluid_oss_SOURCES}
     ${fluid_portaudio_SOURCES}
     ${fluid_pulse_SOURCES}
+    ${fluid_sndio_SOURCES}
     ${fluid_dsound_SOURCES}
     ${fluid_wasapi_SOURCES}
     ${fluid_waveout_SOURCES}
@@ -360,6 +366,10 @@ endif()
 
 if ( TARGET PkgConfig::PULSE AND PULSE_SUPPORT )
     target_link_libraries ( libfluidsynth-OBJ PUBLIC PkgConfig::PULSE )
+endif()
+
+if ( SNDIO_SUPPORT)
+    target_link_libraries ( libfluidsynth-OBJ PUBLIC ${SNDIO_LIBRARIES} )
 endif()
 
 if ( ALSA_SUPPORT )
