diff --git a/package/xen/0005-tools-Use-POSIX-poll.h-instead-of-sys-poll.h.patch b/package/xen/0005-tools-Use-POSIX-poll.h-instead-of-sys-poll.h.patch new file mode 100644 index 0000000000..01843fb3b7 --- /dev/null +++ b/package/xen/0005-tools-Use-POSIX-poll.h-instead-of-sys-poll.h.patch @@ -0,0 +1,83 @@ +From e407387926de4c75abd17bd1396caa95d35a4bea Mon Sep 17 00:00:00 2001 +From: Alistair Francis +Date: Mon, 17 Apr 2017 13:04:11 -0700 +Subject: [PATCH] tools: Use POSIX poll.h instead of sys/poll.h + +The POSIX spec specifies to use: + #include +instead of: + #include +as seen here: + http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html + +This removes the warning: + #warning redirecting incorrect #include to +when building with the musl C-library. + +Signed-off-by: Alistair Francis +Acked-by: Wei Liu +Acked-by: Razvan Cojocaru +Acked-by: Ian Jackson +Release-acked-by: Julien Grall +--- + tools/libxl/libxl_internal.h | 2 +- + tools/tests/xen-access/xen-access.c | 2 +- + tools/xenstat/libxenstat/src/xenstat_qmp.c | 2 +- + tools/xentrace/xentrace.c | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h +index be24b76dfa..5d082c5704 100644 +--- a/tools/libxl/libxl_internal.h ++++ b/tools/libxl/libxl_internal.h +@@ -38,7 +38,7 @@ + #include + + #include +-#include ++#include + #include + #include + #include +diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests/xen-access/xen-access.c +index ff4d289b45..238011e010 100644 +--- a/tools/tests/xen-access/xen-access.c ++++ b/tools/tests/xen-access/xen-access.c +@@ -36,7 +36,7 @@ + #include + #include + #include +-#include ++#include + + #include + #include +diff --git a/tools/xenstat/libxenstat/src/xenstat_qmp.c b/tools/xenstat/libxenstat/src/xenstat_qmp.c +index a87c9373c2..3fda487d49 100644 +--- a/tools/xenstat/libxenstat/src/xenstat_qmp.c ++++ b/tools/xenstat/libxenstat/src/xenstat_qmp.c +@@ -14,7 +14,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +diff --git a/tools/xentrace/xentrace.c b/tools/xentrace/xentrace.c +index f09fe6cf19..364a6fdad5 100644 +--- a/tools/xentrace/xentrace.c ++++ b/tools/xentrace/xentrace.c +@@ -24,7 +24,7 @@ + #include + #include + #include +-#include ++#include + #include + + #include +-- +2.11.0 + diff --git a/package/xen/0006-tools-Use-POSIX-signal.h-instead-of-sys-signal.h.patch b/package/xen/0006-tools-Use-POSIX-signal.h-instead-of-sys-signal.h.patch new file mode 100644 index 0000000000..40a8c5008d --- /dev/null +++ b/package/xen/0006-tools-Use-POSIX-signal.h-instead-of-sys-signal.h.patch @@ -0,0 +1,41 @@ +From 67315f02798cdccb186bd12dc5be94a7aec90852 Mon Sep 17 00:00:00 2001 +From: Alistair Francis +Date: Mon, 17 Apr 2017 14:15:54 -0700 +Subject: [PATCH] tools: Use POSIX signal.h instead of sys/signal.h + +The POSIX spec specifies to use: + #include +instead of: + #include +as seen here: + http://pubs.opengroup.org/onlinepubs/009695399/functions/signal.html + +This removes the warning: + #warning redirecting incorrect #include to +when building with the musl C-library. + +Signed-off-by: Alistair Francis +Acked-by: Wei Liu +Acked-by: Razvan Cojocaru +Acked-by: Ian Jackson +Release-acked-by: Julien Grall +--- + tools/blktap2/drivers/tapdisk-server.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/blktap2/drivers/tapdisk-server.c b/tools/blktap2/drivers/tapdisk-server.c +index eecde3d23f..71315bb069 100644 +--- a/tools/blktap2/drivers/tapdisk-server.c ++++ b/tools/blktap2/drivers/tapdisk-server.c +@@ -30,7 +30,7 @@ + #include + #include + #include +-#include ++#include + + #include "tapdisk-utils.h" + #include "tapdisk-server.h" +-- +2.11.0 +