diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-05-11 09:57:46 -0700 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2017-05-22 22:27:03 -0300 |
commit | e492297efb2c472f2cf580b06f54667df1593597 (patch) | |
tree | 1485c03f89a99863896e67f8f26d151b793aa875 /recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch | |
parent | 435eab8c69441e2cfbc709529bd39ccdd155aaf7 (diff) | |
download | meta-freescale-e492297efb2c472f2cf580b06f54667df1593597.tar.gz |
imx-kobs: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch')
-rw-r--r-- | recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch b/recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch new file mode 100644 index 00000000..9c86f074 --- /dev/null +++ b/recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From c183a648958ab4454247cfd88d01da7730a53d19 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 11 May 2017 00:59:07 -0700 | ||
4 | Subject: [PATCH] Add missing includes as pointed out by musl | ||
5 | |||
6 | These headers are indrectly included when building with | ||
7 | glibc, this is exposed when compiling with musl systems | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | src/mtd.h | 3 +++ | ||
12 | 1 file changed, 3 insertions(+) | ||
13 | |||
14 | diff --git a/src/mtd.h b/src/mtd.h | ||
15 | index 6cb0ca2..0eaea48 100644 | ||
16 | --- a/src/mtd.h | ||
17 | +++ b/src/mtd.h | ||
18 | @@ -25,9 +25,12 @@ | ||
19 | #ifndef MTD_H | ||
20 | #define MTD_H | ||
21 | |||
22 | +#define _GNU_SOURCE | ||
23 | +#include <fcntl.h> | ||
24 | #include <mtd/mtd-user.h> | ||
25 | #include <endian.h> | ||
26 | #include <stdint.h> | ||
27 | +#include <stddef.h> | ||
28 | |||
29 | #include "BootControlBlocks.h" | ||
30 | #include "rom_nand_hamming_code_ecc.h" | ||
31 | -- | ||
32 | 2.12.2 | ||
33 | |||