diff options
author | ToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp> | 2020-03-30 09:24:26 +0900 |
---|---|---|
committer | ToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp> | 2020-03-30 09:24:26 +0900 |
commit | 5b80bfd7bffd4c20d80b7c70a7130529e9a755dd (patch) | |
tree | b4bb18dcd1487dbf1ea8127e5671b7bb2eded033 /external/meta-openembedded/meta-oe/recipes-support/thin-provisioning-tools/files/0001-fix-compile-failed-with-libc-musl.patch | |
parent | 706ad73eb02caf8532deaf5d38995bd258725cb8 (diff) |
agl-basesystem
Diffstat (limited to 'external/meta-openembedded/meta-oe/recipes-support/thin-provisioning-tools/files/0001-fix-compile-failed-with-libc-musl.patch')
-rw-r--r-- | external/meta-openembedded/meta-oe/recipes-support/thin-provisioning-tools/files/0001-fix-compile-failed-with-libc-musl.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/external/meta-openembedded/meta-oe/recipes-support/thin-provisioning-tools/files/0001-fix-compile-failed-with-libc-musl.patch b/external/meta-openembedded/meta-oe/recipes-support/thin-provisioning-tools/files/0001-fix-compile-failed-with-libc-musl.patch new file mode 100644 index 00000000..28b44da5 --- /dev/null +++ b/external/meta-openembedded/meta-oe/recipes-support/thin-provisioning-tools/files/0001-fix-compile-failed-with-libc-musl.patch @@ -0,0 +1,42 @@ +From fcbcf9c494cca166106ae4cb03c1dd135ee4f25c Mon Sep 17 00:00:00 2001 +From: Hongxu Jia <hongxu.jia@windriver.com> +Date: Wed, 1 Aug 2018 09:34:00 +0800 +Subject: [PATCH] fix compile failed with libc musl + +There is a failure while compiling with libc musl: +[snip] +|./block-cache/io_engine.h:18:17: error: expected +unqualified-id before numeric constant +| unsigned const PAGE_SIZE = 4096; +[snip] + +The musl defeines macro PAGE_SIZE, undef it conditionally +could fix the issue. + +http://musl.openwall.narkive.com/tO8vrHdP/why-musl-define-page-size + +Upstream-Status: Submitted [git://github.com/jthornber/thin-provisioning-tools] + +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> +--- + block-cache/io_engine.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/block-cache/io_engine.h b/block-cache/io_engine.h +index 1704251..e36b932 100644 +--- a/block-cache/io_engine.h ++++ b/block-cache/io_engine.h +@@ -12,6 +12,10 @@ + + //---------------------------------------------------------------- + ++// Musl defines ++#ifdef PAGE_SIZE ++#undef PAGE_SIZE ++#endif + namespace bcache { + using sector_t = uint64_t; + +-- +2.7.4 + |