Blame view

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