Based on that bug report error message in miniz.h the wrong branch is being taken for arm64 as it is defining it as follows:
Code:
#elif defined(__GNUC__) && _LARGEFILE64_SOURCE
...
#define MZ_FILE_STAT_STRUCT stat64
#define MZ_FILE_STAT stat64
...
instead of ...
Code:
#else
...
#define MZ_FILE_STAT_STRUCT stat
#define MZ_FILE_STAT stat
...
So near line 310 in miniz.h you might try adding the following inside the Apple ifdef
Code:
#define stat64 stat
But all of this is a guess based on that bug report error message.
You also want to double check that <sys/stat.h> is properly included on arm64 as well.