From: SASANO Takayoshi Date: Tue, 3 Jan 2023 08:37:07 +0000 (+0900) Subject: use , or X-Git-Tag: v1.2.12~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f59674e789f0dca438e2bd1c7d57ccb41d882e9a;p=alsa-plugins.git use , or Closes: https://github.com/alsa-project/alsa-plugins/pull/48 Signed-off-by: SASANO Takayoshi Signed-off-by: Jaroslav Kysela --- diff --git a/oss/ctl_oss.c b/oss/ctl_oss.c index 78810ca..24cdaa2 100644 --- a/oss/ctl_oss.c +++ b/oss/ctl_oss.c @@ -22,11 +22,18 @@ * TODO: implement the pseudo poll with thread (and pipe as pollfd)? */ +#include "config.h" #include #include #include #include +#if defined(__linux__) #include +#elif HAVE_SYS_SOUNDCARD_H +#include +#elif HAVE_SOUNDCARD_H +#include +#endif typedef struct snd_ctl_oss { snd_ctl_ext_t ext; diff --git a/oss/pcm_oss.c b/oss/pcm_oss.c index dadbb5b..c21ee4f 100644 --- a/oss/pcm_oss.c +++ b/oss/pcm_oss.c @@ -18,11 +18,18 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" #include #include #include #include +#if defined(__linux__) #include +#elif HAVE_SYS_SOUNDCARD_H +#include +#elif HAVE_SOUNDCARD_H +#include +#endif typedef struct snd_pcm_oss { snd_pcm_ioplug_t io;