blob: 21cd9f9588ec25e107596bd059473c8f53d9bdc1 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001Consider musl provided built-in defines
2
3Helps compile libtirpc with musl
Brad Bishop1d80a2e2019-11-15 16:35:03 -05004bits/endian.h is not supposed to be included directly
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8
Brad Bishop1d80a2e2019-11-15 16:35:03 -05009--- a/tirpc/rpc/types.h
10+++ b/tirpc/rpc/types.h
11@@ -66,7 +66,7 @@ typedef int32_t rpc_inline_t;
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012 #define mem_free(ptr, bsize) free(ptr)
13
14
15-#if defined __APPLE_CC__ || defined __FreeBSD__
16+#if defined __APPLE_CC__ || defined __FreeBSD__ || !defined(__GLIBC__)
17 # define __u_char_defined
18 # define __daddr_t_defined
19 #endif
Brad Bishop1d80a2e2019-11-15 16:35:03 -050020--- a/src/xdr_float.c
21+++ b/src/xdr_float.c
22@@ -83,7 +83,7 @@ static struct sgl_limits {
23 };
24 #else
25
26-#include <bits/endian.h>
27+#include <endian.h>
28 #define IEEEFP
29
30 #endif /* vax */