This patch series fixes building on modern MinGW and MinGW-W64 (including x86_64). *Compilation* tested on: - MSVC - msysGit environment (twice) - Linux cross-toolchain i686-pc-mingw32 - Linux cross-toolchain i686-w64-mingw32 - Linux cross-toolchain x86_64-w64-mingw32 Also, this patchset is confirmed to pass msysgit testsuite. Attention: in order to build on MinGW-W64, you need a version that has https://sourceforge.net/p/mingw-w64/bugs/397 fixed. Otherwise, you'll get: compat/poll/poll.c: In function 'poll': compat/poll/poll.c:541:7: warning: implicit declaration of function 'MsgWaitForMultipleObjects' compat/poll/poll.c:542:26: error 'QS_ALLINPUT' undeclared (first use in this function) ------- Cosmetic changes since v4: * Reworded 'MSVC: config.mak.uname: drop -D__USE_MINGW_ACCESS from CFLAGS' (added note about MinGW section) * Reworded 'MINGW: config.mak.uname: reorganize MinGW settings' (now uses gender-neutral singular 'they') * Reworded 'Fix pointer -> integer casts on IL32P64 systems' (added references to Gnulib commits) ------- Additional note: todays git.git/master is broken on both MSVC and MinGW-W64 because of 7559a1be + 4e6d207c: MSVC doesn't have sigset_t at all, MinGW-W64 has it in sys/types.h, but it is only available with -D_POSIX. I hope this can be resolved separately as a regression for MSVC. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html