In file included from gunzip.c:54:
./unzipstore.c:71:40: error: expected ';' at end of declaration
  int zread (char *buf, size_t maxread)
                                       ^
                                       ;
./unzipstore.c:126:48: error: expected ';' at end of declaration
  void zwrite (const char *wbuf, size_t nwrite)
                                               ^
                                               ;
./unzipstore.c:189:22: error: use of undeclared identifier 'zreaderr'
  unzip_read_error = zreaderr;
                     ^
./unzipstore.c:190:17: error: use of undeclared identifier 'zerror'
  unzip_error = zerror;
                ^
./unzipstore.c:208:12: error: use of undeclared identifier 'out_buf_offs'; did you mean 'in_buf_offs'?
  else if (out_buf_offs < *buf_len)
           ^~~~~~~~~~~~
           in_buf_offs
./unzipstore.c:61:10: note: 'in_buf_offs' declared here
  size_t in_buf_offs = 0;       /* Offset of read point in IN_BUF.  */
         ^
./unzipstore.c:211:32: error: use of undeclared identifier 'out_buf_offs'; did you mean 'in_buf_offs'?
      size_t end = round_page (out_buf_offs);
                               ^~~~~~~~~~~~
                               in_buf_offs
/usr/include/mach_init.h:40:21: note: expanded from macro 'round_page'
  ((((vm_offset_t) (x) + __vm_page_size - 1) / __vm_page_size) * \
                    ^
./unzipstore.c:61:10: note: 'in_buf_offs' declared here
  size_t in_buf_offs = 0;       /* Offset of read point in IN_BUF.  */
         ^
./unzipstore.c:214:18: error: use of undeclared identifier 'out_buf_offs'; did you mean 'in_buf_offs'?
      *buf_len = out_buf_offs;
                 ^~~~~~~~~~~~
                 in_buf_offs
./unzipstore.c:61:10: note: 'in_buf_offs' declared here
  size_t in_buf_offs = 0;       /* Offset of read point in IN_BUF.  */
         ^
7 errors generated.