Pārlūkot izejas kodu

Merge pull request #71934 from Riteo/who-thought-alsa-didnt-follow-posix

Fix builtin alsa headers building on musl
Rémi Verschelde 2 gadi atpakaļ
vecāks
revīzija
b192d3d38b

+ 1 - 0
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
 

+ 1 - 1
thirdparty/linuxbsd_headers/alsa/asoundlib.h

@@ -35,7 +35,7 @@
 #include <string.h>
 #include <fcntl.h>
 #include <assert.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <errno.h>
 #include <stdarg.h>
 #include <endian.h>

+ 11 - 0
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 <string.h>
+ #include <fcntl.h>
+ #include <assert.h>
+-#include <sys/poll.h>
++#include <poll.h>
+ #include <errno.h>
+ #include <stdarg.h>
+ #include <endian.h>