summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2016-08-15 17:30:39 +0200
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-08-15 17:30:39 +0200
commit977d12d739deedd21ea3ca5a96d0ffd83bd5b4ea (patch)
tree63151778eaedd2a66419f9dbd9d7ca1467206f81 /mdadm.h
parentmdadm: put journal device in right place of --detail (diff)
downloadmdadm-977d12d739deedd21ea3ca5a96d0ffd83bd5b4ea.tar.xz
mdadm-977d12d739deedd21ea3ca5a96d0ffd83bd5b4ea.zip
mdadm.h: Fix build problem against newer glibc
Newer glibc requires direct include of sys/sysmacros.h in order to access makedev(). Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'mdadm.h')
-rwxr-xr-xmdadm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 1fd38a37..cfa5bebe 100755
--- a/mdadm.h
+++ b/mdadm.h
@@ -45,6 +45,10 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
#include <errno.h>
#include <string.h>
#include <syslog.h>
+#ifdef __GLIBC__
+/* Newer glibc requires sys/sysmacros.h directly for makedev() */
+#include <sys/sysmacros.h>
+#endif
#ifdef __dietlibc__
#include <strings.h>
/* dietlibc has deprecated random and srandom!! */