]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sunrpc/rpc/types.h: fix OS X and FreeBSD build problems
authorJia Liu <proljc@gmail.com>
Fri, 6 Sep 2013 16:01:08 +0000 (00:01 +0800)
committerMike Frysinger <vapier@gentoo.org>
Wed, 11 Sep 2013 22:37:21 +0000 (18:37 -0400)
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>
ChangeLog
sunrpc/rpc/types.h

index cb1b4033fb5347d364b6c78a28643f2fe721f6d2..8f264da42d145748da7edd28cca092bafca7cbfd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
index 3dca5c40f686c804b9058cec81ae36c8136233b4..beded5255595513cf0bd8b5e69a3a4e3ba630343 100644 (file)
@@ -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;