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>
This commit is contained in:
Jia Liu 2013-09-07 00:01:08 +08:00 committed by Mike Frysinger
parent 5905e7b3e2
commit ae7080d30c
2 changed files with 11 additions and 0 deletions

View File

@ -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

View 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;