From c64a0461b9b72486a0d3328018e43fbb25a19999 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 3 Jan 2016 19:46:43 -0500 Subject: [PATCH] gzip: Fix aarch64 build --- packages/gzip/zip.c.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 packages/gzip/zip.c.patch diff --git a/packages/gzip/zip.c.patch b/packages/gzip/zip.c.patch new file mode 100644 index 00000000..668c6d45 --- /dev/null +++ b/packages/gzip/zip.c.patch @@ -0,0 +1,31 @@ +Re-ordering the headers in the below patch fixes aarch64 +compilation, due to gzip.h defining + +# define head (prev+WSIZE) + +and using + +struct fpsimd_context { + struct _aarch64_ctx head; + /* ... */ +} + +diff -u -r ../gzip-1.6/zip.c ./zip.c +--- ../gzip-1.6/zip.c 2013-02-01 23:39:13.000000000 -0500 ++++ ./zip.c 2016-01-03 19:37:00.603075562 -0500 +@@ -20,12 +20,12 @@ + #include + #include + +-#include "tailor.h" +-#include "gzip.h" +- + #include + #include + ++#include "tailor.h" ++#include "gzip.h" ++ + local ulg crc; /* crc on uncompressed file data */ + off_t header_bytes; /* number of bytes in gzip header */ + -- 2.11.0