mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
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:
parent
5905e7b3e2
commit
ae7080d30c
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user