Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59e42827 authored by Thomas Klausner's avatar Thomas Klausner Committed by Takashi Iwai
Browse files

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: default avatarThomas Klausner <wiz@NetBSD.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 6defb60a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -23,7 +23,11 @@
#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>