From: Thomas Klausner Date: Thu, 3 Mar 2016 15:28:22 +0000 (+0100) Subject: ALSA: uapi: Make alsa asound.h header more portable X-Git-Tag: next-20160307~62^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=59e4282717cb2adbfd12314ff484669a85827412;p=karo-tx-linux.git ALSA: uapi: Make alsa asound.h header more portable This header is used as-is in the alsa-lib userland library, which is portable to other operating systems. For this reason, include linux/types.h only on Linux systems. Add sys/ioctl.h for _IOR/_IOW/etc. (works at least on *BSD and Solaris). Signed-off-by: Thomas Klausner Signed-off-by: Takashi Iwai --- diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h index a82108e5d1c0..67bf49d8c944 100644 --- a/include/uapi/sound/asound.h +++ b/include/uapi/sound/asound.h @@ -23,7 +23,11 @@ #ifndef _UAPI__SOUND_ASOUND_H #define _UAPI__SOUND_ASOUND_H +#if defined(__KERNEL__) || defined(__linux__) #include +#else +#include +#endif #ifndef __KERNEL__ #include