Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2022-01-21 21:01:09 +0300
committerGitHub <noreply@github.com>2022-01-21 21:01:09 +0300
commit28c3f6f2517093d5490d2cb208c763849fa51fdd (patch)
treefe0f9266211e67e1001f7d966e13f019fc8bc169
parent394aec8b1c68a64f38c56a0e9bc8d571f1bcf0d4 (diff)
parentf6a546b7f673540c261a07b6e6a1047eabe8022c (diff)
Merge PR #5480: BUILD: include poll.h for poll(3) (instead of sys/poll.h)
As per POSIX.1-2008, the correct header to include for poll(3) is poll.h. Including sys/poll.h instead of poll.h causes the following warning message on Alpine Linux: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h> Due to -Werror, this ultimately causes the build to fail.
-rw-r--r--src/mumble/ALSAAudio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mumble/ALSAAudio.cpp b/src/mumble/ALSAAudio.cpp
index ccb0f5022..2656b749c 100644
--- a/src/mumble/ALSAAudio.cpp
+++ b/src/mumble/ALSAAudio.cpp
@@ -10,7 +10,7 @@
#include "Utils.h"
#include <alsa/asoundlib.h>
-#include <sys/poll.h>
+#include <poll.h>
#include "Global.h"