While building the latest pretest of wget2, I saw that the Gnulib's detection of nanosleep fails to detect its presence in mingw.org's MinGW runtime. The test program used for that fails for unrelated reason: it uses SIGALRM, which is unavailable on MS-Windows.
I'm guessing that SIGALRM is used to guard against buggy nanosleep implementations, and if so, perhaps the test program could be modified to avoid using SIGALRM on Windows. Thanks.