| 1 | |
| 2 | |
| 3 | @@ -69,24 +69,14 @@ typedef unsigned long rpcport_t;
|
| 4 | #include <sys/types.h>
|
| 5 | #endif
|
| 6 |
|
| 7 | -#if defined __APPLE_CC__ || defined __FreeBSD__
|
| 8 | -# define __u_char_defined
|
| 9 | -# define __daddr_t_defined
|
| 10 | -#endif
|
| 11 | -
|
| 12 | -#ifndef __u_char_defined
|
| 13 | -typedef __u_char u_char;
|
| 14 | -typedef __u_short u_short;
|
| 15 | -typedef __u_int u_int;
|
| 16 | -typedef __u_long u_long;
|
| 17 | -typedef __quad_t quad_t;
|
| 18 | -typedef __u_quad_t u_quad_t;
|
| 19 | -typedef __fsid_t fsid_t;
|
| 20 | +/* IMPORTANT NOTE: This has been modified to build against the musl C
|
| 21 | + * library and it probably now ONLY builds with the musl C library.
|
| 22 | + *
|
| 23 | + * See: https://sourceware.org/bugzilla/show_bug.cgi?id=21604
|
| 24 | + */
|
| 25 | # define __u_char_defined
|
| 26 | -#endif
|
| 27 | #ifndef __daddr_t_defined
|
| 28 | -typedef __daddr_t daddr_t;
|
| 29 | -typedef __caddr_t caddr_t;
|
| 30 | +typedef int daddr_t;
|
| 31 | # define __daddr_t_defined
|
| 32 | #endif
|
| 33 |
|