blob: df202c8555be8c56057db642a807c8a0f62f7149 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 848717da4a28d33f8aa8f889377e61e6b1b8ae67 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Jul 2017 18:29:52 -0700
4Subject: [PATCH] define loff_t if not already defined
5
6Helps to build with musl
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 yaffs_guts.h | 4 ++++
11 1 file changed, 4 insertions(+)
12
13diff --git a/yaffs_guts.h b/yaffs_guts.h
14index 6bcf12d..4af17ce 100644
15--- a/yaffs_guts.h
16+++ b/yaffs_guts.h
17@@ -18,6 +18,10 @@
18
19 #include "yportenv.h"
20
21+#ifndef loff_t
22+#define loff_t off_t
23+#endif
24+
25 #define YAFFS_OK 1
26 #define YAFFS_FAIL 0
27
28--
292.13.2
30