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 |
| 4 | |
| 5 | Upstream-Status: Pending |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | |
| 8 | --- ./tirpc/rpc/types.h.orig 2018-03-17 10:23:10.022055255 +0100 |
| 9 | +++ ./tirpc/rpc/types.h 2018-03-17 10:23:30.877751656 +0100 |
| 10 | @@ -66,7 +66,7 @@ |
| 11 | #define mem_free(ptr, bsize) free(ptr) |
| 12 | |
| 13 | |
| 14 | -#if defined __APPLE_CC__ || defined __FreeBSD__ |
| 15 | +#if defined __APPLE_CC__ || defined __FreeBSD__ || !defined(__GLIBC__) |
| 16 | # define __u_char_defined |
| 17 | # define __daddr_t_defined |
| 18 | #endif |