When I build arm-linux-gcc on OS X, I find glibc will get a build error
in sunrpc/rpc/types.h, so I add __APPLE_CC__ to make OS X build OK.
For FreeBSD, Add __FreeBSD__ to make it build OK, too.
URL: http://sourceware.org/ml/libc-alpha/2013-09/msg00155.html
URL: http://sourceware.org/ml/libc-alpha/2013-09/msg00217.html
URL: http://sourceware.org/ml/libc-alpha/2013-09/msg00240.html
Signed-off-by: Jia Liu <proljc@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+2013-09-11 Jia Liu <proljc@gmail.com>
+
+ * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
+ __daddr_t_defined.
+ [__FreeBSD__]: Likewise.
+
2013-09-11 Ondřej Bílka <neleai@seznam.cz>
* sysdeps/x86_64/multiarch/ifunc-impl-list.c
#include <sys/types.h>
#endif
+#if defined __APPLE_CC__ || defined __FreeBSD__
+# define __u_char_defined
+# define __daddr_t_defined
+#endif
+
#ifndef __u_char_defined
typedef __u_char u_char;
typedef __u_short u_short;