]> xenbits.xensource.com Git - xen.git/commitdiff
tools: Use POSIX poll.h instead of sys/poll.h
authorAlistair Francis <alistair.francis@xilinx.com>
Mon, 17 Apr 2017 21:33:10 +0000 (14:33 -0700)
committerWei Liu <wei.liu2@citrix.com>
Tue, 18 Apr 2017 16:03:49 +0000 (17:03 +0100)
The POSIX spec specifies to use:
    #include <poll.h>
instead of:
    #include <sys/poll.h>
as seen here:
    http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html

This removes the warning:
    #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
when building with the musl C-library.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
tools/libxl/libxl_internal.h
tools/tests/xen-access/xen-access.c
tools/xenstat/libxenstat/src/xenstat_qmp.c
tools/xentrace/xentrace.c

index be24b76dfa7aa1d7b83a5c5fd69c14a9c373813b..5d082c570482381ce4445e0f6a28b16de7e87677 100644 (file)
@@ -38,7 +38,7 @@
 #include <ctype.h>
 
 #include <sys/mman.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/select.h>
 #include <sys/stat.h>
 #include <sys/time.h>
index ff4d289b45318593f4c202dc0d28faa0779f1354..238011e010b9d7429340609f3f318b5bc18cb767 100644 (file)
@@ -36,7 +36,7 @@
 #include <signal.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <sys/poll.h>
+#include <poll.h>
 
 #include <xenctrl.h>
 #include <xenevtchn.h>
index a87c9373c2951cc85180968e11aeb911d1f09ee4..3fda487d4984bae32efbc3a499e26a5d0e796c34 100644 (file)
@@ -14,7 +14,7 @@
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/un.h>
 #include <stdlib.h>
 #include <string.h>
index f09fe6cf19359bd05f8386a6a0558e2b8835f2e4..364a6fdad5aa5e1a69ef69f9505985ec65b18387 100644 (file)
@@ -24,7 +24,7 @@
 #include <getopt.h>
 #include <assert.h>
 #include <ctype.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/statvfs.h>
 
 #include <xen/xen.h>