From f6718df9fe7be1c3bc6bc0d499ab179dbdaafec0 Mon Sep 17 00:00:00 2001 From: Lauri Tirkkonen Date: Wed, 22 May 2019 18:50:28 +0000 Subject: [PATCH] m4: add gnulib ftello patch (same as gzip) --- components/developer/m4/patches/lib.stdio-impl.h.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 components/developer/m4/patches/lib.stdio-impl.h.patch diff --git a/components/developer/m4/patches/lib.stdio-impl.h.patch b/components/developer/m4/patches/lib.stdio-impl.h.patch new file mode 100644 index 000000000..ea039300d --- /dev/null +++ b/components/developer/m4/patches/lib.stdio-impl.h.patch @@ -0,0 +1,13 @@ +apparently our ftello() is somehow broken, and gzip works around that by +poking in stdio internals directly. let it do that for now even if not __sun. +--- gzip-1.8/lib/stdio-impl.h.orig Tue May 21 13:05:05 2019 ++++ gzip-1.8/lib/stdio-impl.h Tue May 21 13:05:23 2019 +@@ -91,7 +91,7 @@ + + #if defined _IOERR + +-# if defined __sun && defined _LP64 /* Solaris/{SPARC,AMD64} 64-bit */ ++# if (defined(__sun) || defined(__unleashed__)) && defined _LP64 /* Solaris/{SPARC,AMD64} 64-bit */ + # define fp_ ((struct { unsigned char *_ptr; \ + unsigned char *_base; \ + unsigned char *_end; \ -- 2.11.4.GIT