diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-11-05 18:47:48 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-07 15:12:00 +0000 |
commit | eaa7b2464f838a166a6f09d6bd6701d5d05b7009 (patch) | |
tree | 95bce3839377f7d89e29824b287aca6c420c6337 | |
parent | 8407d14686d49d024baede7d5aa293219b7a140d (diff) | |
download | poky-eaa7b2464f838a166a6f09d6bd6701d5d05b7009.tar.gz |
libtirpc: Do not include bits/endian.h directly
this file is supposed be included via endian.h indirectly, moreover
Future musl versions does not have this file
(From OE-Core rev: 3ef6adbc48ea7d5714d04555f3bc80b6e220efa8)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/libtirpc/libtirpc/musl.patch | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/meta/recipes-extended/libtirpc/libtirpc/musl.patch b/meta/recipes-extended/libtirpc/libtirpc/musl.patch index 0c3ce603ea..21cd9f9588 100644 --- a/meta/recipes-extended/libtirpc/libtirpc/musl.patch +++ b/meta/recipes-extended/libtirpc/libtirpc/musl.patch | |||
@@ -1,13 +1,14 @@ | |||
1 | Consider musl provided built-in defines | 1 | Consider musl provided built-in defines |
2 | 2 | ||
3 | Helps compile libtirpc with musl | 3 | Helps compile libtirpc with musl |
4 | bits/endian.h is not supposed to be included directly | ||
4 | 5 | ||
5 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
7 | 8 | ||
8 | --- ./tirpc/rpc/types.h.orig 2018-03-17 10:23:10.022055255 +0100 | 9 | --- a/tirpc/rpc/types.h |
9 | +++ ./tirpc/rpc/types.h 2018-03-17 10:23:30.877751656 +0100 | 10 | +++ b/tirpc/rpc/types.h |
10 | @@ -66,7 +66,7 @@ | 11 | @@ -66,7 +66,7 @@ typedef int32_t rpc_inline_t; |
11 | #define mem_free(ptr, bsize) free(ptr) | 12 | #define mem_free(ptr, bsize) free(ptr) |
12 | 13 | ||
13 | 14 | ||
@@ -16,3 +17,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
16 | # define __u_char_defined | 17 | # define __u_char_defined |
17 | # define __daddr_t_defined | 18 | # define __daddr_t_defined |
18 | #endif | 19 | #endif |
20 | --- a/src/xdr_float.c | ||
21 | +++ b/src/xdr_float.c | ||
22 | @@ -83,7 +83,7 @@ static struct sgl_limits { | ||
23 | }; | ||
24 | #else | ||
25 | |||
26 | -#include <bits/endian.h> | ||
27 | +#include <endian.h> | ||
28 | #define IEEEFP | ||
29 | |||
30 | #endif /* vax */ | ||