Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From 848717da4a28d33f8aa8f889377e61e6b1b8ae67 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 13 Jul 2017 18:29:52 -0700 |
| 4 | Subject: [PATCH] define loff_t if not already defined |
| 5 | |
| 6 | Helps to build with musl |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | yaffs_guts.h | 4 ++++ |
| 11 | 1 file changed, 4 insertions(+) |
| 12 | |
| 13 | diff --git a/yaffs_guts.h b/yaffs_guts.h |
| 14 | index 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 | -- |
| 29 | 2.13.2 |
| 30 | |