[git commit] ubi_tools: add workaround for bad kernel headers. Closes 4838

Denys Vlasenko vda.linux at googlemail.com
Sun Mar 11 17:04:14 UTC 2012


commit: http://git.busybox.net/busybox/commit/?id=7fe1e3f1612f6eb220d6a9796edacf24b7706876
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 miscutils/ubi_tools.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c
index 2a426db..dd99a44 100644
--- a/miscutils/ubi_tools.c
+++ b/miscutils/ubi_tools.c
@@ -60,6 +60,10 @@
 //kbuild:lib-$(CONFIG_UBIUPDATEVOL) += ubi_tools.o
 
 #include "libbb.h"
+/* Some versions of kernel have broken headers, need this hack */
+#ifndef __packed
+# define __packed __attribute__((packed))
+#endif
 #include <mtd/ubi-user.h>
 
 #define OPTION_M  (1 << 0)


More information about the busybox-cvs mailing list