diff options
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.3.0/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch')
| -rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.3.0/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.3.0/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.3.0/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch new file mode 100644 index 0000000000..26a07688e9 --- /dev/null +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.3.0/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From e596ae99059c28fa9bb3461e03e7ecaacbf41727 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrea Adami <andrea.adami@gmail.com> | ||
| 3 | Date: Wed, 23 May 2018 15:34:59 +0200 | ||
| 4 | Subject: [PATCH] libmissing.h: fix klibc build when using glibc toolchain | ||
| 5 | |||
| 6 | klibc lacks execinfo.h so adda guard around it. | ||
| 7 | Note: build with musl toolchain is ok even without this patch. | ||
| 8 | |||
| 9 | Fix build error: | ||
| 10 | |||
| 11 | | In file included from ../git/lib/execinfo.c:1:0: | ||
| 12 | | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: | ||
| 13 | No such file or directory | ||
| 14 | |||
| 15 | Upstream-Status: Inappropriate [klibc specific] | ||
| 16 | |||
| 17 | Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | ||
| 18 | --- | ||
| 19 | include/libmissing.h | 2 ++ | ||
| 20 | 1 file changed, 2 insertions(+) | ||
| 21 | |||
| 22 | diff --git a/include/libmissing.h b/include/libmissing.h | ||
| 23 | index 0196033..832c372 100644 | ||
| 24 | --- a/include/libmissing.h | ||
| 25 | +++ b/include/libmissing.h | ||
| 26 | @@ -1,9 +1,11 @@ | ||
| 27 | #ifndef LIBMISSING_H | ||
| 28 | #define LIBMISSING_H | ||
| 29 | |||
| 30 | +#ifndef __KLIBC__ | ||
| 31 | #ifdef HAVE_EXECINFO_H | ||
| 32 | #include <execinfo.h> | ||
| 33 | #endif | ||
| 34 | +#endif | ||
| 35 | |||
| 36 | #ifndef HAVE_EXECINFO_H | ||
| 37 | int backtrace(void **buffer, int size); | ||
