diff -urp gzip-1.15.old/deflate.c gzip-1.15.new/deflate.c --- gzip-1.15.old/deflate.c 2026-07-26 00:39:51.000000000 +0200 +++ gzip-1.15.new/deflate.c 2026-09-23 12:53:31.465476473 +0200 @@ -290,8 +290,8 @@ static void check_match (IPos start, IPo */ #define INSERT_STRING(s, match_head) \ (UPDATE_HASH(ins_h, window[(s) + MIN_MATCH-1]), \ - prev[(s) & WMASK] = match_head = head[ins_h], \ - head[ins_h] = (s)) + prev[(s) & WMASK] = match_head = gziphead[ins_h], \ + gziphead[ins_h] = (s)) /* =========================================================================== * Initialize the "longest match" routines for a new file @@ -306,9 +306,9 @@ lm_init (int pack_level) /* Initialize the hash table. */ #if defined MAXSEG_64K && HASH_BITS == 15 - for (j = 0; j < HASH_SIZE; j++) head[j] = NIL; + for (j = 0; j < HASH_SIZE; j++) gziphead[j] = NIL; #else - memzero((char*)head, HASH_SIZE*sizeof(*head)); + memzero((char*)gziphead, HASH_SIZE*sizeof(*gziphead)); #endif /* prev will be initialized on the fly */ @@ -555,8 +555,8 @@ fill_window () block_start -= (long) WSIZE; for (n = 0; n < HASH_SIZE; n++) { - m = head[n]; - head[n] = (Pos)(m >= WSIZE ? m-WSIZE : NIL); + m = gziphead[n]; + gziphead[n] = (Pos)(m >= WSIZE ? m-WSIZE : NIL); } for (n = 0; n < WSIZE; n++) { m = prev[n]; diff -urp gzip-1.15.old/gzip.h gzip-1.15.new/gzip.h --- gzip-1.15.old/gzip.h 2026-09-19 08:35:07.000000000 +0200 +++ gzip-1.15.new/gzip.h 2026-09-23 12:53:53.051600021 +0200 @@ -114,14 +114,15 @@ EXTERN(uch, inbuf); /* input bu EXTERN(uch, outbuf); /* output buffer */ EXTERN(ush, d_buf); /* buffer for distances, see trees.c */ EXTERN(uch, window); /* Sliding window and suffix table (unlzw) */ +// head is defined as a signal struct in aarch64: change the name in gziphead #define tab_suffix window #ifndef MAXSEG_64K # define tab_prefix prev /* hash link (see deflate.c) */ -# define head (prev+WSIZE) /* hash head (see deflate.c) */ +# define gziphead (prev+WSIZE) /* hash head (see deflate.c) */ EXTERN(ush, tab_prefix); /* prefix code (see unlzw.c) */ #else # define tab_prefix0 prev -# define head tab_prefix1 +# define gziphead tab_prefix1 EXTERN(ush, tab_prefix0); /* prefix for even codes */ EXTERN(ush, tab_prefix1); /* prefix for odd codes */ #endif diff -urp gzip-1.15.old/unlzh.c gzip-1.15.new/unlzh.c --- gzip-1.15.old/unlzh.c 2026-08-31 12:49:36.000000000 +0200 +++ gzip-1.15.new/unlzh.c 2026-09-23 13:07:20.601404769 +0200 @@ -61,7 +61,7 @@ static void make_table (int nchar, uch b /* static ush left[2 * NC - 1]; */ /* static ush right[2 * NC - 1]; */ #define left prev -#define right head +#define right gziphead #if NC > (1<<(BITS-2)) error cannot overlay left+right and prev #endif