summaryrefslogtreecommitdiff
path: root/super-ddf.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 /super-ddf.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 'super-ddf.c')
-rw-r--r--super-ddf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/super-ddf.c b/super-ddf.c
index f9121995..64893e07 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -30,6 +30,7 @@
#include "mdmon.h"
#include "sha1.h"
#include <values.h>
+#include <stddef.h>
/* a non-official T10 name for creation GUIDs */
static char T10[] = "Linux-MD";
@@ -536,10 +537,6 @@ static int init_super_ddf_bvd(struct supertype *st,
char *name, char *homehost,
int *uuid, unsigned long long data_offset);
-#ifndef offsetof
-#define offsetof(t,f) ((size_t)&(((t*)0)->f))
-#endif
-
#if DEBUG
static void pr_state(struct ddf_super *ddf, const char *msg)
{