From a307d8aabf5cc4e4117da125f2a05d4f4643c773 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 19 Aug 2015 04:18:05 +0200 Subject: allow cross-compile on Cygwin --- toolchain/glibc/patches/2.22/glibc-cross.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 toolchain/glibc/patches/2.22/glibc-cross.patch (limited to 'toolchain/glibc/patches') diff --git a/toolchain/glibc/patches/2.22/glibc-cross.patch b/toolchain/glibc/patches/2.22/glibc-cross.patch new file mode 100644 index 000000000..e29af8dc3 --- /dev/null +++ b/toolchain/glibc/patches/2.22/glibc-cross.patch @@ -0,0 +1,26 @@ +diff -Nur glibc-2.22.orig/sunrpc/rpc_main.c glibc-2.22/sunrpc/rpc_main.c +--- glibc-2.22.orig/sunrpc/rpc_main.c 2015-08-05 08:42:21.000000000 +0200 ++++ glibc-2.22/sunrpc/rpc_main.c 2015-08-19 02:37:42.912687500 +0200 +@@ -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 + -- cgit v1.2.3