]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super1.c
mdadm: Do not reimplment offsetof
[thirdparty/mdadm.git] / super1.c
index 1bc5216faeb9066d45687a2fd70df68561ab1ad9..7cf9b518a41ff98bdd89ce891ac6dd3bd75b33fc 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -22,6 +22,7 @@
  *    Email: <neilb@suse.de>
  */
 
+#include <stddef.h>
 #include "mdadm.h"
 /*
  * The version-1 superblock :
@@ -133,9 +134,6 @@ struct misc_dev_info {
                                        |MD_FEATURE_NEW_OFFSET          \
                                        )
 
-#ifndef offsetof
-#define offsetof(t,f) ((size_t)&(((t*)0)->f))
-#endif
 static unsigned int calc_sb_1_csum(struct mdp_superblock_1 * sb)
 {
        unsigned int disk_csum, csum;