aboutsummaryrefslogtreecommitdiff
path: root/sunrpc
diff options
context:
space:
mode:
authorJia Liu <proljc@gmail.com>2013-09-07 00:01:08 +0800
committerMike Frysinger <vapier@gentoo.org>2013-09-11 18:37:21 -0400
commitae7080d30c68cfa0c81ce3422dca948f64a94f50 (patch)
tree038a6214100d271224a97fdd57932de222c71409 /sunrpc
parent5905e7b3e29139dbef84c065ca39315485f497e1 (diff)
downloadglibc-ae7080d30c68cfa0c81ce3422dca948f64a94f50.tar
glibc-ae7080d30c68cfa0c81ce3422dca948f64a94f50.tar.gz
glibc-ae7080d30c68cfa0c81ce3422dca948f64a94f50.tar.bz2
glibc-ae7080d30c68cfa0c81ce3422dca948f64a94f50.zip
sunrpc/rpc/types.h: fix OS X and FreeBSD build problems
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>
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/rpc/types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sunrpc/rpc/types.h b/sunrpc/rpc/types.h
index 3dca5c40f6..beded52555 100644
--- a/sunrpc/rpc/types.h
+++ b/sunrpc/rpc/types.h
@@ -69,6 +69,11 @@ typedef unsigned long rpcport_t;
#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;