]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Update include/sound/asound.h from 4.6-pre kernel uapi
authorTakashi Iwai <tiwai@suse.de>
Fri, 4 Mar 2016 09:52:18 +0000 (10:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 Mar 2016 09:57:21 +0000 (10:57 +0100)
The inclusion of <linux/*.h> is done conditionally for Linux in order
to improve portability.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/asound.h

index a82108e5d1c0ccfb627daf84ac80b153fe123f66..67bf49d8c94407ca6fe5547e7ce07ef992bab3fc 100644 (file)
 #ifndef _UAPI__SOUND_ASOUND_H
 #define _UAPI__SOUND_ASOUND_H
 
+#if defined(__KERNEL__) || defined(__linux__)
 #include <linux/types.h>
+#else
+#include <sys/ioctl.h>
+#endif
 
 #ifndef __KERNEL__
 #include <stdlib.h>