Skip to contentSkip to conversation

xdr_float: do not include bits/endian.h

PATCH In review Rosen Penev 2 participants 2 messages Jan 20, 2020 – Jan 21, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xdr_float: do not include bits/endian.h

bits/endian.h is an internal header. endian.h should be included.

Fixes compilation with recent musl.

---
 src/xdr_float.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/xdr_float.c +1 -1
index 26bc865..349d48f 100644
@@ -83,7 +83,7 @@ static struct sgl_limits {
 };
 #else
 
-#include <bits/endian.h>
+#include <endian.h>
 #define IEEEFP
 
 #endif /* vax */
Signature · 1 line
2.24.1
#1 lore raw
Quoted 5 lines · Rosen Penev

bits/endian.h is an internal header. endian.h should be included.

Fixes compilation with recent musl.

Committed.... (tag: libtirpc-1-2-6-rc2)

steved.

Quoted 18 lines
---
 src/xdr_float.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/xdr_float.c +1 -1
index 26bc865..349d48f 100644
@@ -83,7 +83,7 @@ static struct sgl_limits {
 };
 #else
 
-#include <bits/endian.h>
+#include <endian.h>
 #define IEEEFP
 
 #endif /* vax */