1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

tools/mtd-utils: update to mtd-utils-20101001, fix FreeBSD (and hopefully Darwin) build issues.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23169 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acoul
2010-10-01 16:39:08 +00:00
parent 0af92c3edb
commit f55c08db99
11 changed files with 295 additions and 58 deletions

View File

@@ -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 @@