]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix offsetof macro for 64bit hosts
authorNeil Brown <neilb@suse.de>
Fri, 16 Jun 2006 00:53:50 +0000 (10:53 +1000)
committerNeil Brown <neilb@suse.de>
Fri, 16 Jun 2006 00:53:50 +0000 (10:53 +1000)
ANNOUNCE-2.5.1 [new file with mode: 0644]
super1.c

diff --git a/ANNOUNCE-2.5.1 b/ANNOUNCE-2.5.1
new file mode 100644 (file)
index 0000000..e69de29
index 28332cd2a2d6dff41d9880af7213c3e59e4afeaf..9dc66448d8c0fe1148f9b1e09612e345307c6238 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -104,7 +104,7 @@ struct mdp_superblock_1 {
 #define        MD_FEATURE_ALL                  (1|2|4)
 
 #ifndef offsetof
-#define offsetof(t,f) ((int)&(((t*)0)->f))
+#define offsetof(t,f) ((size_t)&(((t*)0)->f))
 #endif
 static unsigned int calc_sb_1_csum(struct mdp_superblock_1 * sb)
 {