summaryrefslogtreecommitdiff
path: root/super1.c
diff options
context:
space:
mode:
authorCristian Rodríguez <crrodriguez@opensuse.org>2014-05-21 12:45:19 -0400
committerNeilBrown <neilb@suse.de>2014-05-22 14:29:14 +1000
commit04f903b21ad4d68aa8630433dc2b07edfbc0ad0f (patch)
treed52c06609dbf1256ad7b616983451e939d28783e /super1.c
parent06e293d0970e36b1ed049b9d3ccb21a870e9d2eb (diff)
mdadm: Do not reimplment offsetof
Proper implementations have offsetof in stddef.h Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/super1.c b/super1.c
index 1bc5216f..7cf9b518 100644
--- 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;