summaryrefslogtreecommitdiffstats
path: root/sys-utils/rfkill.c
diff options
context:
space:
mode:
authorPatrick Steinhardt2018-04-10 14:36:32 +0200
committerKarel Zak2018-04-11 13:04:53 +0200
commit74ccba3ed897ca08df5f38e62a76c63e3ad01435 (patch)
treec4bd574f92dd6fa985d510c824372f13eae7bcdd /sys-utils/rfkill.c
parentcfdisk: fix missing prototype for `get_wch` (diff)
downloadkernel-qcow2-util-linux-74ccba3ed897ca08df5f38e62a76c63e3ad01435.tar.gz
kernel-qcow2-util-linux-74ccba3ed897ca08df5f38e62a76c63e3ad01435.tar.xz
kernel-qcow2-util-linux-74ccba3ed897ca08df5f38e62a76c63e3ad01435.zip
rfkill: include <poll.h> instead of <sys/poll.h>
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>
Diffstat (limited to 'sys-utils/rfkill.c')
-rw-r--r--sys-utils/rfkill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/rfkill.c b/sys-utils/rfkill.c
index 211316ce7..9c52fac3a 100644
--- a/sys-utils/rfkill.c
+++ b/sys-utils/rfkill.c
@@ -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>