[alsa-devel] alsa on non-linux

Takashi Iwai tiwai at suse.de
Mon Jan 13 13:13:23 CET 2014

At Fri, 10 Jan 2014 15:37:00 +0000,
Patrick Welche wrote:
> I am currently successfully running alsa-lib 1.0.22 with oss plugins on
> a non-linux box. The advantage is that programs written to use libasound
> work.
> I just tried to update alsa-lib, and see that now alsa-lib directly
> includes headers like linux/types.h, and all protection, such as
>   #if defined(LINUX) || defined(__LINUX__) || defined(__linux__)
> has been removed. This means that compilation on non-linux is
> essentially impossible.
> Is it that there is now a different way of obtaining that alsa lib
> front end / oss back end layer?

Feel free to submit a fix patch :)

The inclusions of linux/*.h are mostly due to laziness.  If a patch is
confirmed to work on both Linux glibc and others, we'll happily take
that patch.


More information about the Alsa-devel mailing list