From: Thomas Klausner Subject: [PATCH] Make alsa asound.h header more portable. Date: Thu, 3 Mar 2016 15:21:39 +0100 Message-ID: <1457014899-19669-1-git-send-email-tk@giga.or.at> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from vie01a-dmta-pe02-2.mx.upcmail.net (vie01a-dmta-pe02-2.mx.upcmail.net [62.179.121.158]) by alsa0.perex.cz (Postfix) with ESMTP id 1F0BC26066B for ; Thu, 3 Mar 2016 15:22:43 +0100 (CET) Received: from [172.31.216.44] (helo=vie01a-pemc-psmtp-pe02) by vie01a-dmta-pe02.mx.upcmail.net with esmtp (Exim 4.72) (envelope-from ) id 1abU9K-0005wY-J3 for alsa-devel@alsa-project.org; Thu, 03 Mar 2016 15:22:42 +0100 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org, Takashi Iwai Cc: Thomas Klausner List-Id: alsa-devel@alsa-project.org From: Thomas Klausner 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 --- include/uapi/sound/asound.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h index a82108e..3d581b5 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 +#ifdef __linux__ #include +#else +#include +#endif #ifndef __KERNEL__ #include -- 2.7.1