diff options
Diffstat (limited to 'meta/recipes-extended/libtirpc/libtirpc/0001-xdr_float-do-not-include-bits-endian.h.patch')
-rw-r--r-- | meta/recipes-extended/libtirpc/libtirpc/0001-xdr_float-do-not-include-bits-endian.h.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-extended/libtirpc/libtirpc/0001-xdr_float-do-not-include-bits-endian.h.patch b/meta/recipes-extended/libtirpc/libtirpc/0001-xdr_float-do-not-include-bits-endian.h.patch new file mode 100644 index 0000000000..3797cdf521 --- /dev/null +++ b/meta/recipes-extended/libtirpc/libtirpc/0001-xdr_float-do-not-include-bits-endian.h.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From d04f4d6f0e682f16b0ce96839ab4eadade591eb1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Rosen Penev <rosenp@gmail.com> | ||
3 | Date: Tue, 21 Jan 2020 11:51:16 -0500 | ||
4 | Subject: [PATCH] xdr_float: do not include bits/endian.h | ||
5 | |||
6 | bits/endian.h is an internal header. endian.h should be included. | ||
7 | |||
8 | Fixes compilation with recent musl. | ||
9 | |||
10 | Signed-off-by: Rosen Penev <rosenp@gmail.com> | ||
11 | Signed-off-by: Steve Dickson <steved@redhat.com> | ||
12 | |||
13 | Upstream-Status: Backport [http://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=d04f4d6f0e682f16b0ce96839ab4eadade591eb1] | ||
14 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
15 | --- | ||
16 | src/xdr_float.c | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/src/xdr_float.c b/src/xdr_float.c | ||
20 | index 26bc865..349d48f 100644 | ||
21 | --- a/src/xdr_float.c | ||
22 | +++ b/src/xdr_float.c | ||
23 | @@ -83,7 +83,7 @@ static struct sgl_limits { | ||
24 | }; | ||
25 | #else | ||
26 | |||
27 | -#include <bits/endian.h> | ||
28 | +#include <endian.h> | ||
29 | #define IEEEFP | ||
30 | |||
31 | #endif /* vax */ | ||
32 | -- | ||
33 | 2.21.1 | ||
34 | |||