summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-02-06 04:18:12 +0000
committerNeil Brown <neilb@suse.de>2006-02-06 04:18:12 +0000
commit1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621 (patch)
tree03546c5e2d7b63bc1b1c76954e5fea9b127f34bd /mdadm.h
parenta92f6acc43a37b7fcea9d968b6e62035ca73a100 (diff)
downloadmdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.tar.gz
mdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.tar.xz
mdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.zip
Release some compile fixes.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 5df6eee..00abefe 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -71,6 +71,20 @@ char *strncpy(char *dest, const char *src, size_t n) __THROW;
#include "md_p.h"
#include "bitmap.h"
+#include <endian.h>
+/* #include "asm/byteorder.h" Redhat don't like this so... */
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+# include <linux/byteorder/little_endian.h>
+#elif __BYTE_ORDER == __BIG_ENDIAN
+# include <linux/byteorder/big_endian.h>
+#elif __BYTE_ORDER == __PDP_ENDIAN
+# include <linux/byteorder/pdp_endian.h>
+#else
+# error "unknown endianness."
+#endif
+
+
+
/* general information that might be extracted from a superblock */
struct mdinfo {
mdu_array_info_t array;