summaryrefslogtreecommitdiff
path: root/toolchain/glibc/patches/2.25/glibc-cross.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-07 04:10:31 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-07 04:10:51 +0100
commit5565eda44fc660ce92c85460ec55370921df5903 (patch)
tree2d8a141122728b8c46135e64caea99b58f154ecf /toolchain/glibc/patches/2.25/glibc-cross.patch
parente7de293195f22c3e630f4a731c9000375e998304 (diff)
glibc: update to 2.25
Diffstat (limited to 'toolchain/glibc/patches/2.25/glibc-cross.patch')
-rw-r--r--toolchain/glibc/patches/2.25/glibc-cross.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/toolchain/glibc/patches/2.25/glibc-cross.patch b/toolchain/glibc/patches/2.25/glibc-cross.patch
new file mode 100644
index 000000000..c38ea8a3c
--- /dev/null
+++ b/toolchain/glibc/patches/2.25/glibc-cross.patch
@@ -0,0 +1,41 @@
+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-12-08 06:21:38.000000000 +0100
+@@ -38,7 +38,11 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
++#if defined(__APPLE__) || defined(__CYGWIN__)
++#define gettext(X) (X)
++#else
+ #include <libintl.h>
++#endif
+ #include <locale.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+@@ -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
+
+diff -Nur glibc-2.22.orig/sunrpc/rpc_scan.c glibc-2.22/sunrpc/rpc_scan.c
+--- glibc-2.22.orig/sunrpc/rpc_scan.c 2015-08-05 08:42:21.000000000 +0200
++++ glibc-2.22/sunrpc/rpc_scan.c 2015-12-08 06:22:36.000000000 +0100
+@@ -37,7 +37,11 @@
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <string.h>
++#if defined(__APPLE__) || defined(__CYGWIN__)
++#define gettext(X) (X)
++#else
+ #include <libintl.h>
++#endif
+ #include "rpc_scan.h"
+ #include "rpc_parse.h"
+ #include "rpc_util.h"