recipes: libs/libtirpc: Resolved a build a error
[dragora.git] / patches / libtirpc / 0001-xdr_float-do-not-include-bits-endian.h.patch
blob3797cdf521171802f85c31525b40d07189dc6528
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
6 bits/endian.h is an internal header. endian.h should be included.
8 Fixes compilation with recent musl.
10 Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 Signed-off-by: Steve Dickson <steved@redhat.com>
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(-)
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 {
25 #else
27 -#include <bits/endian.h>
28 +#include <endian.h>
29 #define IEEEFP
31 #endif /* vax */
32 --
33 2.21.1