diff --git a/configure.ac b/configure.ac index 78a79da..3892bd3 100644 --- a/configure.ac +++ b/configure.ac @@ -491,7 +491,7 @@ dnl Check for OpenBSD's sndio. SNDIO_LIBS="" HAVE_SNDIO_H=0 AS_CASE([$host_os], - [openbsd*], [ + [openbsd*|linux*], [ AC_CHECK_HEADERS(sndio.h) AS_IF([test "x$ac_cv_header_sndio_h" = "xyes"], [ SNDIO_LIBS="-lsndio" diff --git a/man/sndfile-play.1 b/man/sndfile-play.1 index f36d131..3252889 100644 --- a/man/sndfile-play.1 +++ b/man/sndfile-play.1 @@ -14,7 +14,7 @@ output APIs. The following table summarizes which audio API is used where: .Pp .Bl -tag -width MacOSX10XXX -compact .It Linux -ALSA or OSS +ALSA, OSS or sndio .It OpenBSD sndio .It FreeBSD diff --git a/programs/sndfile-play.c b/programs/sndfile-play.c index cd5cc27..be4eaef 100644 --- a/programs/sndfile-play.c +++ b/programs/sndfile-play.c @@ -54,6 +54,10 @@ #include #endif +#if HAVE_SNDIO_H + #include +#endif + #if defined (__ANDROID__) #elif defined (__linux__) || defined (__FreeBSD_kernel__) || defined (__FreeBSD__) @@ -61,9 +65,6 @@ #include #include -#elif HAVE_SNDIO_H - #include - #elif (defined (sun) && defined (unix)) #include #include