Ørjan Malde wrote: > > If on Linux, the result is 'guessing no (mishandles large arguments)', > > it should be the same on systems that emulate the Linux system calls. Right? > > > > No, we have handled the mishandling of large arguments and nanosleep passes > all of gnulib's tests unlike linux.
OK. Then the assignment to 'guessing yes' was correct and only the comment was lacking. I'm applying this: 2024-02-06 Bruno Haible <br...@clisp.org> Further improve cross-compilation for midipix. Reported by Ørjan Malde <r...@foxi.me>. * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Improve cross-compilation guess for midipix. diff --git a/m4/nanosleep.m4 b/m4/nanosleep.m4 index 38c0a5e71f..ff730b676c 100644 --- a/m4/nanosleep.m4 +++ b/m4/nanosleep.m4 @@ -116,10 +116,13 @@ AC_DEFUN([gl_FUNC_NANOSLEEP] *) gl_cv_func_nanosleep=no ;; esac], [case "$host_os" in - # Guess it halfway works when the kernel is Linux - # and on systems that emulate the Linux system calls. - linux* | midipix*) + # Guess it halfway works when the kernel is Linux. + linux*) gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;; + # Midipix generally emulates the Linux system calls, + # but here it handles large arguments correctly. + midipix*) + gl_cv_func_nanosleep='guessing yes' ;; # Guess no on native Windows. mingw* | windows*) gl_cv_func_nanosleep='guessing no' ;;