linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xdr_float: do not include bits/endian.h
@ 2020-01-20  6:49 Rosen Penev
  2020-01-21 16:54 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2020-01-20  6:49 UTC (permalink / raw)
  To: libtirpc-devel; +Cc: linux-nfs

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(-)

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 */
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] xdr_float: do not include bits/endian.h
  2020-01-20  6:49 [PATCH] xdr_float: do not include bits/endian.h Rosen Penev
@ 2020-01-21 16:54 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2020-01-21 16:54 UTC (permalink / raw)
  To: Rosen Penev, libtirpc-devel; +Cc: linux-nfs



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 */
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-21 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20  6:49 [PATCH] xdr_float: do not include bits/endian.h Rosen Penev
2020-01-21 16:54 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).