From 5dab71a4026a43ee90f05111d5c49734e3d16015 Mon Sep 17 00:00:00 2001 From: "Alexandros C. Couloumbis" Date: Fri, 1 Oct 2010 16:39:08 +0000 Subject: 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 --- tools/mtd-utils/patches/110-portability.patch | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tools/mtd-utils/patches/110-portability.patch') 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 @@ -- cgit v1.2.3