summaryrefslogtreecommitdiff
path: root/Grow.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 /Grow.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 'Grow.c')
-rw-r--r--Grow.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Grow.c b/Grow.c
index 202b6ef4..2af6c96e 100644
--- a/Grow.c
+++ b/Grow.c
@@ -24,6 +24,7 @@
#include "mdadm.h"
#include "dlink.h"
#include <sys/mman.h>
+#include <stddef.h>
#include <stdint.h>
#include <signal.h>
#include <sys/wait.h>
@@ -34,10 +35,6 @@
#include "md_u.h"
#include "md_p.h"
-#ifndef offsetof
-#define offsetof(t,f) ((size_t)&(((t*)0)->f))
-#endif
-
int restore_backup(struct supertype *st,
struct mdinfo *content,
int working_disks,