Summary: Fix WINDOWS32 gcc build
Submitted by: bwijen
Submitted on: Sat 02 Nov 2019 09:31:59 AM UTC
Severity: 3 - Normal
Item Group: Build/Install
Assigned to: None
Discussion Lock: Any
Component Version: SCM
Operating System: MS Windows
Fixed Release: None
Triage Status: None
Running `bootstrap.bat` and `build_w32.bat gcc` from tag `4.2.92` results in:
src/dir.c: In function 'dir_contents_file_exists_p':
src/dir.c:736:23: error: 'struct dirent' has no member named 'd_type'
736 | df->type = d->d_type;
Paul, please note that mingw.org's MinGW does provide the 'd_type' member of
struct dirent, unlike MinGW64 which doesn't. The config.h template is correct
for mingw.org, and the change should not be unconditional, it should be
conditioned with some MinGW64 specific condition.
I don't have access to any Windows systems with any version of either cygwin
or mingw installed (well, I have Git for Windows installed and it provides
some aspects of mingw I believe), nor clang or GCC for windows: all I can test
is the simple native MSVC compilation.
So based on your comment, it's likely my fix did not work :(