chiark / gitweb /
termux-tools: Search in more places for su
[termux-packages] / packages / gzip / zip.c.patch
1 Re-ordering the headers in the below patch fixes aarch64
2 compilation, due to gzip.h defining
3
4 #  define head (prev+WSIZE) 
5
6 and <asm/sigcontext.h> using
7
8 struct fpsimd_context {
9         struct _aarch64_ctx head;
10         /* ... */
11 }
12
13 diff -u -r ../gzip-1.6/zip.c ./zip.c
14 --- ../gzip-1.6/zip.c   2013-02-01 23:39:13.000000000 -0500
15 +++ ./zip.c     2016-01-03 19:37:00.603075562 -0500
16 @@ -20,12 +20,12 @@
17  #include <config.h>
18  #include <ctype.h>
19  
20 -#include "tailor.h"
21 -#include "gzip.h"
22 -
23  #include <unistd.h>
24  #include <fcntl.h>
25  
26 +#include "tailor.h"
27 +#include "gzip.h"
28 +
29  local ulg crc;       /* crc on uncompressed file data */
30  off_t header_bytes;   /* number of bytes in gzip header */
31