--- origsrc/libsamplerate-0.2.2/configure.ac 2021-09-05 20:48:12.000000000 +0900 +++ src/libsamplerate-0.2.2/configure.ac 2023-09-09 17:53:59.819880900 +0900 @@ -292,7 +294,7 @@ AS_IF([test "x$have_visibility" = "xyes" AS_IF([test "x$lt_cv_prog_gnu_ld" = "xyes"], [ AS_CASE([${host_os}], - [mingw*|cygwin*], [ + [mingw*], [ SHLIB_VERSION_ARG="-export-symbols \$(top_srcdir)/Win32/libsamplerate-0.def"], [*], [ SHLIB_VERSION_ARG="-Wl,--version-script=\$(top_builddir)/src/Version_script" --- origsrc/libsamplerate-0.2.2/examples/audio_out.c 2021-05-23 23:28:23.000000000 +0900 +++ src/libsamplerate-0.2.2/examples/audio_out.c 2023-09-09 17:30:33.441863400 +0900 @@ -42,7 +42,7 @@ ** Linux (ALSA and OSS) functions for playing a sound. */ -#if defined (__linux__) +#if defined (__linux__) || defined (__CYGWIN__) #if HAVE_ALSA @@ -997,7 +997,7 @@ solaris_close (AUDIO_OUT *audio_out) AUDIO_OUT * audio_open (int channels, int samplerate) { -#if defined (__linux__) +#if defined (__linux__) || defined (__CYGWIN__) #if HAVE_ALSA if (access ("/proc/asound/cards", R_OK) == 0) return alsa_open (channels, samplerate) ; @@ -1039,7 +1039,7 @@ audio_play (get_audio_callback_t callbac return ; } ; -#if defined (__linux__) +#if defined (__linux__) || defined (__CYGWIN__) #if HAVE_ALSA if (audio_out->magic == ALSA_MAGIC) alsa_play (callback, audio_out, callback_data) ; @@ -1064,7 +1064,7 @@ audio_play (get_audio_callback_t callbac void audio_close (AUDIO_OUT *audio_out) { -#if defined (__linux__) +#if defined (__linux__) || defined (__CYGWIN__) #if HAVE_ALSA if (audio_out->magic == ALSA_MAGIC) alsa_close (audio_out) ;