ubi_tools: add workaround for bad kernel headers. Closes 4838
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Mar 2012 17:04:14 +0000 (18:04 +0100)
committerDenys 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

index 2a426db..dd99a44 100644 (file)
 //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)