From acb78384d8728d5c3270904bb14257c7a56e8820 Mon Sep 17 00:00:00 2001 From: Riteo Date: Mon, 23 Jan 2023 20:25:12 +0100 Subject: Fix builtin alsa headers building on musl For some reason it doesn't use the POSIX `poll.h`, instead resorting to `sys/poll.h`. Musl doesn't really like this at all, throwing a warning and, thus, halting compilation. --- thirdparty/linuxbsd_headers/README.md | 1 + thirdparty/linuxbsd_headers/alsa/asoundlib.h | 2 +- .../linuxbsd_headers/alsa/patches/use-standard-poll-h.diff | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 thirdparty/linuxbsd_headers/alsa/patches/use-standard-poll-h.diff (limited to 'thirdparty') diff --git a/thirdparty/linuxbsd_headers/README.md b/thirdparty/linuxbsd_headers/README.md index 450c0e78aa..af902aa97a 100644 --- a/thirdparty/linuxbsd_headers/README.md +++ b/thirdparty/linuxbsd_headers/README.md @@ -11,6 +11,7 @@ readability. - Version: 1.1.3-5 - License: LPGL-2.1+ +Patches in the `patches` directory should be re-applied after updates. ## dbus diff --git a/thirdparty/linuxbsd_headers/alsa/asoundlib.h b/thirdparty/linuxbsd_headers/alsa/asoundlib.h index 3c2766e325..a546194382 100644 --- a/thirdparty/linuxbsd_headers/alsa/asoundlib.h +++ b/thirdparty/linuxbsd_headers/alsa/asoundlib.h @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/thirdparty/linuxbsd_headers/alsa/patches/use-standard-poll-h.diff b/thirdparty/linuxbsd_headers/alsa/patches/use-standard-poll-h.diff new file mode 100644 index 0000000000..8d536df579 --- /dev/null +++ b/thirdparty/linuxbsd_headers/alsa/patches/use-standard-poll-h.diff @@ -0,0 +1,11 @@ +--- a/asoundlib.h ++++ b/asoundlib.h +@@ -35,7 +35,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include -- cgit v1.2.3