]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
rfkill: include <poll.h> instead of <sys/poll.h>
authorPatrick Steinhardt <ps@pks.im>
Tue, 10 Apr 2018 12:36:32 +0000 (13:36 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 14:04:49 +0000 (16:04 +0200)
The POSIX standard states that poll(3P) is being made available by
<poll.h>, not <sys/poll.h>. Most commands already include the correct
header, with the exception of rfkill. Fix that to avoid a warning on
musl-based systems.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
sys-utils/rfkill.c

index 211316ce702c4253cdeb09cacfdd79a90dc820a2..9c52fac3a098bb845d5f4cdecae5a6302f8e478e 100644 (file)
@@ -24,7 +24,7 @@
 #include <getopt.h>
 #include <libsmartcols.h>
 #include <linux/rfkill.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/syslog.h>
 #include <sys/time.h>