Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From 2645673a7ea948a1297d5b8f0daab29b898f044f Mon Sep 17 00:00:00 2001 |
| 2 | From: "Maxin B. John" <maxin.john@intel.com> |
| 3 | Date: Fri, 5 Feb 2016 17:14:04 +0200 |
| 4 | Subject: [PATCH] util.c: include poll.h instead of sys/poll.h |
| 5 | |
| 6 | This fixes a compile warning when building with musl: |
| 7 | |
| 8 | In file included from util.c:27:0: |
| 9 | | |
| 10 | qemux86-64/usr/include/sys/poll.h:1:2: |
| 11 | error: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> |
| 12 | [-Werror=cpp] |
| 13 | | #warning redirecting incorrect #include <sys/poll.h> to <poll.h> |
| 14 | | ^ |
| 15 | |
| 16 | Upstream-Status: Accepted |
| 17 | |
| 18 | Signed-off-by: Maxin B. John <maxin.john@intel.com> |
| 19 | --- |
| 20 | util.c | 2 +- |
| 21 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 22 | |
| 23 | diff --git a/util.c b/util.c |
| 24 | index 970d484..3e6d293 100644 |
| 25 | --- a/util.c |
| 26 | +++ b/util.c |
| 27 | @@ -24,7 +24,6 @@ |
| 28 | |
| 29 | #include "mdadm.h" |
| 30 | #include "md_p.h" |
| 31 | -#include <sys/poll.h> |
| 32 | #include <sys/socket.h> |
| 33 | #include <sys/utsname.h> |
| 34 | #include <sys/wait.h> |
| 35 | @@ -32,6 +31,7 @@ |
| 36 | #include <sys/resource.h> |
| 37 | #include <sys/vfs.h> |
| 38 | #include <linux/magic.h> |
| 39 | +#include <poll.h> |
| 40 | #include <ctype.h> |
| 41 | #include <dirent.h> |
| 42 | #include <signal.h> |
| 43 | -- |
| 44 | 2.4.0 |
| 45 | |