Browse Source

alsa-lib: fix includes of sys/poll.h (remove redirecting... warnings)

Signed-off-by: Ted Hess <thess@kitschensync.net>
lilik-openwrt-22.03
Ted Hess 10 years ago
parent
commit
9a5b82ba2e
1 changed files with 142 additions and 0 deletions
  1. +142
    -0
      libs/alsa-lib/patches/005-fix_include_file_redirect_warnings.patch

+ 142
- 0
libs/alsa-lib/patches/005-fix_include_file_redirect_warnings.patch View File

@ -0,0 +1,142 @@
--- a/src/seq/seq.c
+++ b/src/seq/seq.c
@@ -777,7 +777,7 @@ void event_filter(snd_seq_t *seq, snd_se
*/
-#include <sys/poll.h>
+#include <poll.h>
#include "seq_local.h"
/****************************************************************************
--- a/aserver/aserver.c
+++ b/aserver/aserver.c
@@ -20,7 +20,7 @@
#include <sys/shm.h>
#include <sys/socket.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/un.h>
#include <sys/uio.h>
#include <stdio.h>
--- a/include/asoundlib-head.h
+++ b/include/asoundlib-head.h
@@ -35,6 +35,6 @@
#include <string.h>
#include <fcntl.h>
#include <assert.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <errno.h>
#include <stdarg.h>
--- a/include/asoundlib.h
+++ b/include/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>
--- a/include/local.h
+++ b/include/local.h
@@ -47,7 +47,7 @@
#error Header defining endianness not defined
#endif
#include <stdarg.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/types.h>
#include <errno.h>
#include <linux/types.h>
--- a/src/control/control.c
+++ b/src/control/control.c
@@ -48,7 +48,7 @@ and IEC958 structure.
#include <string.h>
#include <fcntl.h>
#include <signal.h>
-#include <sys/poll.h>
+#include <poll.h>
#include "control_local.h"
/**
--- a/src/control/control_shm.c
+++ b/src/control/control_shm.c
@@ -27,7 +27,7 @@
#include <fcntl.h>
#include <sys/shm.h>
#include <sys/socket.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/un.h>
#include <sys/uio.h>
#include <sys/mman.h>
--- a/src/pcm/pcm.c
+++ b/src/pcm/pcm.c
@@ -634,7 +634,7 @@ playback devices.
#include <stdarg.h>
#include <signal.h>
#include <ctype.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/shm.h>
#include <sys/mman.h>
#include <limits.h>
--- a/src/pcm/pcm_direct.c
+++ b/src/pcm/pcm_direct.c
@@ -30,7 +30,7 @@
#include <grp.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include <sys/wait.h>
--- a/src/pcm/pcm_mmap.c
+++ b/src/pcm/pcm_mmap.c
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <malloc.h>
#include <string.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/mman.h>
#include <sys/shm.h>
#include "pcm_local.h"
--- a/src/pcm/pcm_share.c
+++ b/src/pcm/pcm_share.c
@@ -34,7 +34,7 @@
#include <signal.h>
#include <math.h>
#include <sys/socket.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/shm.h>
#include <pthread.h>
#include "pcm_local.h"
--- a/src/pcm/pcm_shm.c
+++ b/src/pcm/pcm_shm.c
@@ -36,7 +36,7 @@
#include <sys/ioctl.h>
#include <sys/shm.h>
#include <sys/socket.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/un.h>
#include <sys/mman.h>
#include <netinet/in.h>
--- a/src/shmarea.c
+++ b/src/shmarea.c
@@ -22,7 +22,7 @@
#include <malloc.h>
#include <string.h>
#include <errno.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/mman.h>
#include <sys/shm.h>
#include "list.h"

Loading…
Cancel
Save