Debian Codegraph @

thirdparty/linuxbsd_headers/alsa/patches/0002-freebsd-sys-endian.patch

raw
1 diff --git a/thirdparty/linuxbsd_headers/alsa/asoundlib.h b/thirdparty/linuxbsd_headers/alsa/asoundlib.h
2 index a546194382..598175403c 100644
3 --- a/thirdparty/linuxbsd_headers/alsa/asoundlib.h
4 +++ b/thirdparty/linuxbsd_headers/alsa/asoundlib.h
5 @@ -38,7 +38,11 @@
6 #include <poll.h>
7 #include <errno.h>
8 #include <stdarg.h>
9 +#ifdef __FreeBSD__
10 +#include <sys/endian.h>
11 +#else
12 #include <endian.h>
13 +#endif // __FreeBSD__
14
15 #ifndef __GNUC__
16 #define __inline__ inline