diff mbox series

xdr_float: do not include bits/endian.h

Message ID 20200120064937.1867256-1-rosenp@gmail.com (mailing list archive)
State New, archived
Headers show
Series xdr_float: do not include bits/endian.h | expand

Commit Message

Rosen Penev Jan. 20, 2020, 6:49 a.m. UTC
bits/endian.h is an internal header. endian.h should be included.

Fixes compilation with recent musl.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 src/xdr_float.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve Dickson Jan. 21, 2020, 4:54 p.m. UTC | #1
On 1/20/20 1:49 AM, Rosen Penev wrote:
> bits/endian.h is an internal header. endian.h should be included.
> 
> Fixes compilation with recent musl.
> 
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
Committed.... (tag: libtirpc-1-2-6-rc2)

steved.
> ---
>  src/xdr_float.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/xdr_float.c b/src/xdr_float.c
> index 26bc865..349d48f 100644
> --- 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 */
>
diff mbox series

Patch

diff --git a/src/xdr_float.c b/src/xdr_float.c
index 26bc865..349d48f 100644
--- 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 */