On 12/23/22 00:38, Roger Pack wrote:
$ x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../.. -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -mtune=generic -O3 -MT gettimeofday.o -MD -MP -MF $depbase.Tpo -c -o - -dM -E gettimeofday.c | grep WIN32_WINNT #define _WIN32_WINNT 0xa00 https://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg18212.html
If this is from a build of vanilla Gnulib, that's OK: Gnulib is merely following MingW's lead and if MingW defaults to MS-Windows 10 then that'll be the default in Gnulib too.
If this is from an Emacs build then I suggest tracking down why Emacs isn't defining _WIN32_WINNT to a value appropriate for Emacs and MingW. nt/inc/ms-w32.h has a "#define _WIN32_WINNT 0x0400" that should be overriding the MingW default.