]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
Redhat 6.2 seems to require sys/time.h as well as time.h
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index bb124776069c9194eb9d0e36db1c8927b6a582de..4ad4d47dcf8375c1a5206ae5e0e3b65dd43fa10c 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -37,6 +37,7 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
 #include       <sys/stat.h>
 #include       <stdlib.h>
 #include       <time.h>
+#include       <sys/time.h>
 #include       <getopt.h>
 #include       <fcntl.h>
 #include       <stdio.h>
@@ -73,7 +74,7 @@ struct mdinfo {
        mdu_array_info_t        array;
        mdu_disk_info_t         disk;
        __u64                   events;
-       unsigned int            uuid[4];
+       int                     uuid[4];
 };
 
 #define Name "mdadm"
@@ -321,3 +322,14 @@ extern int open_mddev(char *dev, int autof);
 
 #define        ModeMask        0x1f
 #define        ModeShift       5
+
+
+#ifdef __TINYC__
+#undef minor
+#undef major
+#undef makedev
+#define minor(x) ((x)&0xff)
+#define major(x) (((x)>>8)&0xff)
+#define makedev(M,m) (((M)<<8) | (m))
+#endif
+