1[PATCH] Fix musl build 2 3Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> 4--- 5 src/mtd.c | 1 + 6 src/mtd.h | 5 +++++ 7 2 files changed, 6 insertions(+) 8 9diff --git a/src/mtd.c b/src/mtd.c 10index 1edc441..6d2264c 100644 11--- a/src/mtd.c 12+++ b/src/mtd.c 13@@ -31,6 +31,7 @@ 14 #include <fcntl.h> 15 #include <ctype.h> 16 #include <errno.h> 17+#include <stddef.h> 18 #include <sys/types.h> 19 #include <sys/ioctl.h> 20 21diff --git a/src/mtd.h b/src/mtd.h 22index bd21add..debfc84 100644 23--- a/src/mtd.h 24+++ b/src/mtd.h 25@@ -31,6 +31,11 @@ 26 #include "BootControlBlocks.h" 27 #include "rom_nand_hamming_code_ecc.h" 28 29+// musl library doesn't define loff_t 30+#if !defined(__GLIBC__) && !defined(__UCLIBC__) 31+#define loff_t off_t 32+#endif 33+ 34 //------------------------------------------------------------------------------ 35 // Re-definitions of true and false, because the standard ones aren't good 36 // enough? 37-- 382.5.1 39 40