From: Bruno Haible Date: Tue, 6 Feb 2024 08:46:07 +0000 (+0100) Subject: Further improve cross-compilation for midipix. X-Git-Tag: v1.0~465 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d960dcc41c6969d255682e4c35f412c22ce60b60;p=gnulib.git Further improve cross-compilation for midipix. Reported by Ørjan Malde . * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Improve cross-compilation guess for midipix. --- diff --git a/ChangeLog b/ChangeLog index 4813e18c7b..bab9cb58e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,11 @@ -2024-02-03 Paul Eggert +2024-02-06 Bruno Haible + + Further improve cross-compilation for midipix. + Reported by Ørjan Malde . + * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Improve cross-compilation guess + for midipix. + +2024-02-05 Paul Eggert ctime: improve doc * doc/posix-functions/asctime.texi (asctime): 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' ;;