Build (compilation) failure on mingw-w64.
Effectively unconditional FTSYS_SRC='$(PLATFORM_DIR)/ftsystem.c' on mingw results in build failure below. It is important to realize that mingw is unix and that points to builds/unix/ftsystem.c. There must be other ways to use builds/windows/ftsystem.c. It is not ok that ./configure; make
fails like this. The mmap check on mingw-w64 used to fail and compilation worked.
./builds/unix/libtool --mode=compile gcc -pedantic -I/c/Users/Alexei/source/repos/freetype/objs -I./builds/unix -I/c/Users/Alexei/source/repos/freetype/include -c -Wall -g -O2 -fvisibility=hidden -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include -pthread -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -DFT_CONFIG_MODULES_H="<ftmodule.h>" -DFT_CONFIG_OPTIONS_H="<ftoption.h>" -DFT2_BUILD_LIBRARY -o /c/Users/Alexei/source/repos/freetype/objs/ftsystem.lo builds/unix/ftsystem.c
libtool: compile: gcc -pedantic -I/c/Users/Alexei/source/repos/freetype/objs -I./builds/unix -I/c/Users/Alexei/source/repos/freetype/include -c -Wall -g -O2 -fvisibility=hidden -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include -pthread "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" "-DFT_CONFIG_MODULES_H=<ftmodule.h>" "-DFT_CONFIG_OPTIONS_H=<ftoption.h>" -DFT2_BUILD_LIBRARY builds/unix/ftsystem.c -DDLL_EXPORT -DPIC -o /c/Users/Alexei/source/repos/freetype/objs/.libs/ftsystem.o
builds/unix/ftsystem.c:33:10: fatal error: sys/mman.h: No such file or directory
33 | #include <sys/mman.h>
| ^~~~~~~~~~~~
compilation terminated.
make: *** [/c/Users/Alexei/source/repos/freetype/builds/freetype.mk:204: /c/Users/Alexei/source/repos/freetype/objs/ftsystem.lo] Error 1