diff options
author | Neil Brown <neilb@suse.de> | 2006-02-06 04:18:12 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-02-06 04:18:12 +0000 |
commit | 1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621 (patch) | |
tree | 03546c5e2d7b63bc1b1c76954e5fea9b127f34bd /mdadm.h | |
parent | a92f6acc43a37b7fcea9d968b6e62035ca73a100 (diff) | |
download | mdadm-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.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; |