Windows mingw64: multiple definition of symbol 'gettimeofday'

When building via mingw64 for Windows, the resulting library exposes the symbol gettimeofday. Which collides with the selfsame symbol from mingw64:

/opt/ct-ng/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld: /opt/ffbuild/lib/libssh.a(misc.c.obj):misc.c:(.text+0x1e0): multiple definition of `gettimeofday'; /opt/ct-ng/x86_64-w64-mingw32/sysroot/mingw/lib/../lib/libmingwex.a(lib64_libmingwex_a-gettimeofday.o):/ct-ng/build/x86_64-w64-mingw32/src/mingw-w64/mingw-w64-crt/misc/gettimeofday.c:69: first defined here

That function either needs to be renamed, made static/inline or a configure-time check needs to be added which uses the system version if available. In the later case, the internal one should probably still be renamed to a more unique name, to avoid collisions under potentially more complex circumstances.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information