From 2e19693886ce5904c49b86dd4a5fdf5b43a4e441 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 2 Sep 2016 06:26:25 +0200 Subject: glibc: fix cross-compile on MacOS X --- toolchain/glibc/patches/2.21/glibc-cross.patch | 97 -------------------------- 1 file changed, 97 deletions(-) delete mode 100644 toolchain/glibc/patches/2.21/glibc-cross.patch (limited to 'toolchain/glibc/patches/2.21/glibc-cross.patch') diff --git a/toolchain/glibc/patches/2.21/glibc-cross.patch b/toolchain/glibc/patches/2.21/glibc-cross.patch deleted file mode 100644 index 5a655b7c5..000000000 --- a/toolchain/glibc/patches/2.21/glibc-cross.patch +++ /dev/null @@ -1,97 +0,0 @@ -diff -Nur glibc-2.20.orig/sunrpc/rpc/types.h glibc-2.20/sunrpc/rpc/types.h ---- glibc-2.20.orig/sunrpc/rpc/types.h 2014-09-07 10:09:09.000000000 +0200 -+++ glibc-2.20/sunrpc/rpc/types.h 2014-12-26 10:30:51.733297900 +0100 -@@ -74,19 +74,24 @@ - # define __daddr_t_defined - #endif - --#ifndef __u_char_defined --typedef __u_char u_char; --typedef __u_short u_short; --typedef __u_int u_int; --typedef __u_long u_long; --typedef __quad_t quad_t; --typedef __u_quad_t u_quad_t; --typedef __fsid_t fsid_t; --# define __u_char_defined -+typedef unsigned char u_char; -+typedef unsigned short u_short; -+typedef unsigned int u_int; -+typedef unsigned long u_long; -+#if __WORDSIZE == 64 -+#ifndef __APPLE__ -+typedef long int quad_t; -+typedef unsigned long int u_quad_t; -+#endif -+#elif defined __GLIBC_HAVE_LONG_LONG -+typedef long long int quad_t; -+typedef unsigned long long int u_quad_t; - #endif --#ifndef __daddr_t_defined --typedef __daddr_t daddr_t; --typedef __caddr_t caddr_t; -+ -+# define __u_char_defined -+#if !defined(__daddr_t_defined) && defined(linux) -+typedef long int daddr_t; -+typedef char *caddr_t; - # define __daddr_t_defined - #endif - -diff -Nur glibc-2.20.orig/sunrpc/rpc_main.c glibc-2.20/sunrpc/rpc_main.c ---- glibc-2.20.orig/sunrpc/rpc_main.c 2014-09-07 10:09:09.000000000 +0200 -+++ glibc-2.20/sunrpc/rpc_main.c 2014-12-26 11:23:56.822092200 +0100 -@@ -38,7 +38,11 @@ - #include - #include - #include -+#if defined(__APPLE__) || defined(__CYGWIN__) -+#define gettext(X) (X) -+#else - #include -+#endif - #include - #include - #include -@@ -51,6 +55,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#ifdef __CYGWIN__ -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - -@@ -958,10 +966,12 @@ - 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); -+ } - - } - else -diff -Nur glibc-2.20.orig/sunrpc/rpc_scan.c glibc-2.20/sunrpc/rpc_scan.c ---- glibc-2.20.orig/sunrpc/rpc_scan.c 2014-09-07 10:09:09.000000000 +0200 -+++ glibc-2.20/sunrpc/rpc_scan.c 2014-12-26 10:30:51.764498000 +0100 -@@ -37,7 +37,11 @@ - #include - #include - #include -+#ifdef __APPLE__ -+#define gettext(X) (X) -+#else - #include -+#endif - #include "rpc_scan.h" - #include "rpc_parse.h" - #include "rpc_util.h" -- cgit v1.2.3