From: Felix Fietkau Date: Fri, 5 Jun 2015 09:00:02 +0000 (+0000) Subject: mtd: add missing include X-Git-Tag: reboot~2856 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9e233fb241157ca30b1f5d462751490f34f0f435;p=openwrt%2Fstaging%2Fjogo.git mtd: add missing include trx.c in mtd would not include endian.h, so on systems that do not have this header implicitly included from the other headers (like musl), both __BYTE_ORDER and __BIG_ENDIAN would be undefined and thus 0, leading to it always presuming a big-endian system. this would lead to issues when running mtd fixtrx on little-endian systems, as it would never recognize the TRX magic as result of the broken STORE32_LE() macro. Signed-off-by: Shiz Tested-by: Shiz SVN-Revision: 45896 --- diff --git a/package/system/mtd/src/trx.c b/package/system/mtd/src/trx.c index 089d1ace46..245ee7630a 100644 --- a/package/system/mtd/src/trx.c +++ b/package/system/mtd/src/trx.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include