|
@@ -145,16 +145,18 @@ typedef struct mdp_superblock_s {
|
|
|
__u32 failed_disks; /* 4 Number of failed disks */
|
|
|
__u32 spare_disks; /* 5 Number of spare disks */
|
|
|
__u32 sb_csum; /* 6 checksum of the whole superblock */
|
|
|
-#ifdef __BIG_ENDIAN
|
|
|
+#if defined(__BYTE_ORDER) ? __BYTE_ORDER == __BIG_ENDIAN : defined(__BIG_ENDIAN)
|
|
|
__u32 events_hi; /* 7 high-order of superblock update count */
|
|
|
__u32 events_lo; /* 8 low-order of superblock update count */
|
|
|
__u32 cp_events_hi; /* 9 high-order of checkpoint update count */
|
|
|
__u32 cp_events_lo; /* 10 low-order of checkpoint update count */
|
|
|
-#else
|
|
|
+#elif defined(__BYTE_ORDER) ? __BYTE_ORDER == __LITTLE_ENDIAN : defined(__LITTLE_ENDIAN)
|
|
|
__u32 events_lo; /* 7 low-order of superblock update count */
|
|
|
__u32 events_hi; /* 8 high-order of superblock update count */
|
|
|
__u32 cp_events_lo; /* 9 low-order of checkpoint update count */
|
|
|
__u32 cp_events_hi; /* 10 high-order of checkpoint update count */
|
|
|
+#else
|
|
|
+#error unspecified endianness
|
|
|
#endif
|
|
|
__u32 recovery_cp; /* 11 recovery checkpoint sector count */
|
|
|
/* There are only valid for minor_version > 90 */
|