]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
util.c: include poll.h instead of sys/poll.h
authorMaxin B. John <maxin.john@intel.com>
Fri, 5 Feb 2016 22:28:16 +0000 (00:28 +0200)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 8 Feb 2016 15:59:00 +0000 (10:59 -0500)
This fixes a compile warning when building with musl:

 In file included from util.c:27:0:
 |
 qemux86-64/usr/include/sys/poll.h:1:2:
 error: #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
 [-Werror=cpp]
 |  #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
 |   ^

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
util.c

diff --git a/util.c b/util.c
index 6e7d3fb93306bda2403e771a59e36cc689e89f52..96a806d4ee236d26d3a85908a768a5c186fdd885 100644 (file)
--- a/util.c
+++ b/util.c
@@ -24,7 +24,6 @@
 
 #include       "mdadm.h"
 #include       "md_p.h"
-#include       <sys/poll.h>
 #include       <sys/socket.h>
 #include       <sys/utsname.h>
 #include       <sys/wait.h>
@@ -32,6 +31,7 @@
 #include       <sys/resource.h>
 #include       <sys/vfs.h>
 #include       <linux/magic.h>
+#include       <poll.h>
 #include       <ctype.h>
 #include       <dirent.h>
 #include       <signal.h>