projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6545762
)
ubi_tools: add workaround for bad kernel headers. Closes 4838
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 11 Mar 2012 17:04:14 +0000
(18:04 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 11 Mar 2012 17:04:14 +0000
(18:04 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/ubi_tools.c
patch
|
blob
|
history
diff --git
a/miscutils/ubi_tools.c
b/miscutils/ubi_tools.c
index 2a426dbdc69c60942134233788b4d7f4601894d2..dd99a44f4e1b5750e29a6d70ea9ad7838a601520 100644
(file)
--- 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)