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:
authorSören Tempel <soeren+git@soeren-tempel.net>2022-01-19 02:19:46 +0300
committerSören Tempel <soeren+git@soeren-tempel.net>2022-01-19 02:19:46 +0300
commitf6a546b7f673540c261a07b6e6a1047eabe8022c (patch)
tree51c8336df47344c4bd24f269c38e03437421b70f
parenta517b06fb5a693e4cb3bc7704b657793ee638430 (diff)
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"