From 357a58811b8f500c6b2653fbe7a0fea2412534f7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 2 Jul 2011 09:47:00 +0000 Subject: eglibc: remove old versions SVN-Revision: 27360 --- .../eglibc/patches/2.9/100-darwin_cross.patch | 71 ---------------------- 1 file changed, 71 deletions(-) delete mode 100644 toolchain/eglibc/patches/2.9/100-darwin_cross.patch (limited to 'toolchain/eglibc/patches/2.9/100-darwin_cross.patch') diff --git a/toolchain/eglibc/patches/2.9/100-darwin_cross.patch b/toolchain/eglibc/patches/2.9/100-darwin_cross.patch deleted file mode 100644 index a9fddb7d01..0000000000 --- a/toolchain/eglibc/patches/2.9/100-darwin_cross.patch +++ /dev/null @@ -1,71 +0,0 @@ ---- a/libc/sunrpc/rpc/types.h -+++ b/libc/sunrpc/rpc/types.h -@@ -68,6 +68,7 @@ typedef unsigned long rpcport_t; - #include - #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 - #include ---- a/libc/sunrpc/rpc_main.c -+++ b/libc/sunrpc/rpc_main.c -@@ -40,7 +40,11 @@ - #include - #include - #include -+#ifdef _CROSS_RPCGEN_ -+#define gettext(X) (X) -+#else - #include -+#endif - #include - #include - #include -@@ -998,9 +1002,10 @@ mkfile_output (struct commandline *cmd) - abort (); - temp = rindex (cmd->infile, '.'); - cp = stpcpy (mkfilename, "Makefile."); -- if (temp != NULL) -- *((char *) stpncpy (cp, cmd->infile, temp - cmd->infile)) = '\0'; -- else -+ if (temp != NULL) { -+ strncpy (cp, cmd->infile, temp - cmd->infile); -+ cp[temp - cmd->infile - 1] = '\0'; -+ } else - stpcpy (cp, cmd->infile); - - } ---- a/libc/sunrpc/rpc_scan.c -+++ b/libc/sunrpc/rpc_scan.c -@@ -39,7 +39,11 @@ - #include - #include - #include -+#ifdef _CROSS_RPCGEN_ -+#define gettext(X) (X) -+#else - #include -+#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-$*) \ - -DCROSS_ZIC $(compile-mkdep-flags) - - $(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs)) -- cgit v1.2.3