Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | Consider musl provided built-in defines |
| 2 | |
| 3 | Helps compile libtirpc with musl |
Brad Bishop | 1d80a2e | 2019-11-15 16:35:03 -0500 | [diff] [blame^] | 4 | bits/endian.h is not supposed to be included directly |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 5 | |
| 6 | Upstream-Status: Pending |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | |
Brad Bishop | 1d80a2e | 2019-11-15 16:35:03 -0500 | [diff] [blame^] | 9 | --- a/tirpc/rpc/types.h |
| 10 | +++ b/tirpc/rpc/types.h |
| 11 | @@ -66,7 +66,7 @@ typedef int32_t rpc_inline_t; |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | #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 Bishop | 1d80a2e | 2019-11-15 16:35:03 -0500 | [diff] [blame^] | 20 | --- 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 */ |