diff options
author | Alexandros C. Couloumbis <alex@ozo.com> | 2010-10-01 16:39:08 +0000 |
---|---|---|
committer | Alexandros C. Couloumbis <alex@ozo.com> | 2010-10-01 16:39:08 +0000 |
commit | 930031c5d10ce5c4e15979ee0547eb2399709bc7 (patch) | |
tree | 42aae04dff446edc875829bc04f650da6211b7a6 /tools/mtd-utils/patches/110-portability.patch | |
parent | 42a49519f011d2531099fc68ce764c82c4dd84c8 (diff) | |
download | upstream-930031c5d10ce5c4e15979ee0547eb2399709bc7.tar.gz upstream-930031c5d10ce5c4e15979ee0547eb2399709bc7.tar.bz2 upstream-930031c5d10ce5c4e15979ee0547eb2399709bc7.zip |
tools/mtd-utils: update to mtd-utils-20101001, fix FreeBSD (and hopefully Darwin) build issues.
SVN-Revision: 23169
Diffstat (limited to 'tools/mtd-utils/patches/110-portability.patch')
-rw-r--r-- | tools/mtd-utils/patches/110-portability.patch | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/mtd-utils/patches/110-portability.patch b/tools/mtd-utils/patches/110-portability.patch index d35b446587..43b4faaca6 100644 --- a/tools/mtd-utils/patches/110-portability.patch +++ b/tools/mtd-utils/patches/110-portability.patch @@ -30,16 +30,6 @@ struct rb_node { -@@ -131,7 +130,9 @@ static inline void rb_set_color(struct r - - #define RB_ROOT (struct rb_root) { NULL, } - -+#ifndef offsetof - #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) -+#endif - - #define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ --- a/include/mtd/ubi-media.h +++ b/include/mtd/ubi-media.h @@ -30,7 +30,15 @@ |