[PATCH] rbtree: avoid redefining offsetof

Artem Bityutskiy dedekind1 at gmail.com
Thu Sep 23 09:36:15 EDT 2010


On Wed, 2010-09-22 at 22:13 -0400, Mike Frysinger wrote:
> Newer versions of gcc will define & export offsetof, so we don't
> want to unconditionally define it.  Otherwise we hit:
> 	In file included from mkfs.jffs2.c:76:0:
> 	rbtree.h:134:0: warning: "offsetof" redefined
> 	/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/stddef.h:411:0: note:
> 		this is the location of the previous definition
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>

Pushed to mtd-utils, thanks!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list