diff options
author | Cristian RodrÃguez <crrodriguez@opensuse.org> | 2014-05-21 12:45:19 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-05-22 14:29:14 +1000 |
commit | 04f903b21ad4d68aa8630433dc2b07edfbc0ad0f (patch) | |
tree | d52c06609dbf1256ad7b616983451e939d28783e /Grow.c | |
parent | 06e293d0970e36b1ed049b9d3ccb21a870e9d2eb (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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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, |