How can I build InfoZip (Unzip 6.x) on Mingw/Msys2.. I tried but got error when requiring ioctl.h:
$ make generic_gcc ... ... gcc -c -I. -Ibzip2 -DUNIX -O3 -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -D_MBCS ttyio.c ttyio.c:109:12: fatal error: sys/ioctl.h: No such file or directory \# include <sys/ioctl.h> ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [unix/Makefile:234: ttyio.o] Error 1 make[2]: Leaving directory '/usr/src/unzip60' make[1]: *** [unix/Makefile:544: generic] Error 2 make[1]: Leaving directory '/usr/src/unzip60' make: *** [Makefile:548: generic_gcc] Error 2
How should I solve build InfoZip on Msys2/Mingw ?
The secret is hidden in INSTALL (under "Win32 (WinNT or Win9x)":
So, a command like the following should work:
On the bright side, with the next UnZip beta release (6.1c), the
standard Unix build procedure should work as expected in MinGW.
(Basically, "-DUNIX" is replaced by "-DWIN32", but there were also some
other changes to unix/configure and unix/Makefile, so I don't see a
simple way to use the 6.00 Unix builders in that environment.)