diff options
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch')
| -rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch deleted file mode 100644 index 2844a5020c..0000000000 --- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | From ae1cf6d0eb1833e46549328a4473222c259723d7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrea Adami <andrea.adami@gmail.com> | ||
| 3 | Date: Thu, 1 Feb 2018 00:25:00 +0100 | ||
| 4 | Subject: [PATCH] mtd-utils: common.h: no features.h for klibc builds | ||
| 5 | |||
| 6 | Add guard around features.h to fix missing include (here first error): | ||
| 7 | |||
| 8 | ../git/include/common.h:29:10: | ||
| 9 | fatal error: features.h: No such file or directory | ||
| 10 | #include <features.h> | ||
| 11 | ^~~~~~~~~~~~ | ||
| 12 | compilation terminated | ||
| 13 | |||
| 14 | Upstream-Status: Submitted | ||
| 15 | |||
| 16 | Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | ||
| 17 | --- | ||
| 18 | include/common.h | 3 +++ | ||
| 19 | 1 file changed, 3 insertions(+) | ||
| 20 | |||
| 21 | diff --git a/include/common.h b/include/common.h | ||
| 22 | index 642c212..f7c71fe 100644 | ||
| 23 | --- a/include/common.h | ||
| 24 | +++ b/include/common.h | ||
| 25 | @@ -26,7 +26,10 @@ | ||
| 26 | #include <string.h> | ||
| 27 | #include <fcntl.h> | ||
| 28 | #include <errno.h> | ||
| 29 | +#if defined(__KLIBC__) | ||
| 30 | +#else | ||
| 31 | #include <features.h> | ||
| 32 | +#endif | ||
| 33 | #include <inttypes.h> | ||
| 34 | #include <unistd.h> | ||
| 35 | #include <sys/sysmacros.h> | ||
| 36 | -- | ||
| 37 | 2.7.4 | ||
| 38 | |||
