]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
use <linux/soundcard.h>, <sys/soundcard.h> or
authorSASANO Takayoshi <uaa@uaa.org.uk>
Tue, 3 Jan 2023 08:37:07 +0000 (17:37 +0900)
committerJaroslav Kysela <perex@perex.cz>
Mon, 10 Jun 2024 09:03:44 +0000 (11:03 +0200)
Closes: https://github.com/alsa-project/alsa-plugins/pull/48
Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
oss/ctl_oss.c
oss/pcm_oss.c

index 78810ca5aecb101692786e03b73c7841d7dedcfc..24cdaa2e7e1b1bbaa486d30dc43e83f40ac4818e 100644 (file)
  * TODO: implement the pseudo poll with thread (and pipe as pollfd)?
  */
 
+#include "config.h"
 #include <stdio.h>
 #include <sys/ioctl.h>
 #include <alsa/asoundlib.h>
 #include <alsa/control_external.h>
+#if defined(__linux__)
 #include <linux/soundcard.h>
+#elif HAVE_SYS_SOUNDCARD_H
+#include <sys/soundcard.h>
+#elif HAVE_SOUNDCARD_H
+#include <soundcard.h>
+#endif
 
 typedef struct snd_ctl_oss {
        snd_ctl_ext_t ext;
index dadbb5bc803218c0f0a8d3c9e46608e0f498f6aa..c21ee4f35d276f81032bb3558be217821738a140 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include "config.h"
 #include <stdio.h>
 #include <sys/ioctl.h>
 #include <alsa/asoundlib.h>
 #include <alsa/pcm_external.h>
+#if defined(__linux__)
 #include <linux/soundcard.h>
+#elif HAVE_SYS_SOUNDCARD_H
+#include <sys/soundcard.h>
+#elif HAVE_SOUNDCARD_H
+#include <soundcard.h>
+#endif
 
 typedef struct snd_pcm_oss {
        snd_pcm_ioplug_t io;