diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-01-26 19:44:47 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-01-26 19:44:47 +0000 |
commit | 8bf53faa440be2e2631cf655c0505e6134ab7ac9 (patch) | |
tree | 50f78b6d5f16a480fad8b647132c1bf73a6ecd2e /toolchain/eglibc/patches/2.8 | |
parent | 8c12e6ecedeac599a0c25251bf86b02d12d9c55c (diff) | |
download | master-31e0f0ae-8bf53faa440be2e2631cf655c0505e6134ab7ac9.tar.gz master-31e0f0ae-8bf53faa440be2e2631cf655c0505e6134ab7ac9.tar.bz2 master-31e0f0ae-8bf53faa440be2e2631cf655c0505e6134ab7ac9.zip |
fix eglibc 2.8 cross-compile under darwin / mac os x
SVN-Revision: 14209
Diffstat (limited to 'toolchain/eglibc/patches/2.8')
-rw-r--r-- | toolchain/eglibc/patches/2.8/100-darwin_cross.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/toolchain/eglibc/patches/2.8/100-darwin_cross.patch b/toolchain/eglibc/patches/2.8/100-darwin_cross.patch new file mode 100644 index 0000000000..198b58388e --- /dev/null +++ b/toolchain/eglibc/patches/2.8/100-darwin_cross.patch @@ -0,0 +1,57 @@ +--- a/libc/sunrpc/rpc/types.h ++++ b/libc/sunrpc/rpc/types.h +@@ -68,6 +68,7 @@ typedef unsigned long rpcport_t; + #include <sys/types.h> + #endif + ++#if !defined(_CROSS_RPCGEN_) || !defined(__APPLE__) + #ifndef __u_char_defined + typedef __u_char u_char; + typedef __u_short u_short; +@@ -83,6 +84,7 @@ typedef __daddr_t daddr_t; + typedef __caddr_t caddr_t; + # define __daddr_t_defined + #endif ++#endif + + #include <sys/time.h> + #include <sys/param.h> +--- a/libc/sunrpc/rpc_main.c ++++ b/libc/sunrpc/rpc_main.c +@@ -40,7 +40,11 @@ + #include <stdio.h> + #include <string.h> + #include <unistd.h> ++#ifdef _CROSS_RPCGEN_ ++#define gettext(X) (X) ++#else + #include <libintl.h> ++#endif + #include <ctype.h> + #include <sys/types.h> + #include <sys/param.h> +--- a/libc/sunrpc/rpc_scan.c ++++ b/libc/sunrpc/rpc_scan.c +@@ -39,7 +39,11 @@ + #include <stdio.h> + #include <ctype.h> + #include <string.h> ++#ifdef _CROSS_RPCGEN_ ++#define gettext(X) (X) ++#else + #include <libintl.h> ++#endif + #include "rpc_scan.h" + #include "rpc_parse.h" + #include "rpc_util.h" +--- a/libc/timezone/Makefile ++++ b/libc/timezone/Makefile +@@ -181,7 +181,7 @@ zic-objs = zic.o ialloc.o scheck.o + $(objpfx)zic: $(addprefix $(objpfx), $(zic-objs)) + + $(addprefix $(objpfx)cross-,$(zic-objs)): $(objpfx)cross-%.o: %.c +- gcc $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \ ++ gcc $< -c $(OUTPUT_OPTION) $(filter-out -DHAVE_GETTEXT,$(CFLAGS-$*.c)) $(CPPFLAGS-$*) \ + $(compile-mkdep-flags) + + $(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs)) |