aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-11-05 18:47:48 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-07 11:45:25 +0000
commit3ef6adbc48ea7d5714d04555f3bc80b6e220efa8 (patch)
treebb599d4586136e10ab096f0af1249cbc1864dcf5
parent087ed197ae7c5022a1185c09fc2d38c4acd7bf18 (diff)
downloadopenembedded-core-contrib-3ef6adbc48ea7d5714d04555f3bc80b6e220efa8.tar.gz
openembedded-core-contrib-3ef6adbc48ea7d5714d04555f3bc80b6e220efa8.tar.bz2
openembedded-core-contrib-3ef6adbc48ea7d5714d04555f3bc80b6e220efa8.zip
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 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.patch18
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 0c3ce603ea0..21cd9f9588e 100644
--- a/meta/recipes-extended/libtirpc/libtirpc/musl.patch
+++ b/meta/recipes-extended/libtirpc/libtirpc/musl.patch
@@ -1,13 +1,14 @@
Consider musl provided built-in defines
Helps compile libtirpc with musl
+bits/endian.h is not supposed to be included directly
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---- ./tirpc/rpc/types.h.orig 2018-03-17 10:23:10.022055255 +0100
-+++ ./tirpc/rpc/types.h 2018-03-17 10:23:30.877751656 +0100
-@@ -66,7 +66,7 @@
+--- a/tirpc/rpc/types.h
++++ b/tirpc/rpc/types.h
+@@ -66,7 +66,7 @@ typedef int32_t rpc_inline_t;
#define mem_free(ptr, bsize) free(ptr)
@@ -16,3 +17,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
# define __u_char_defined
# define __daddr_t_defined
#endif
+--- a/src/xdr_float.c
++++ b/src/xdr_float.c
+@@ -83,7 +83,7 @@ static struct sgl_limits {
+ };
+ #else
+
+-#include <bits/endian.h>
++#include <endian.h>
+ #define IEEEFP
+
+ #endif /* vax */