]> Savannah Git Hosting - gnulib.git/commitdiff
Further improve cross-compilation for midipix.
authorBruno Haible <bruno@clisp.org>
Tue, 6 Feb 2024 08:46:07 +0000 (09:46 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 6 Feb 2024 08:46:07 +0000 (09:46 +0100)
Reported by Ørjan Malde <red@foxi.me>.

* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Improve cross-compilation guess
for midipix.

ChangeLog
m4/nanosleep.m4

index 4813e18c7ba971d5544a39867b907bd5f8ea6a5e..bab9cb58e44e0574735e3f665efaea7556575609 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-2024-02-03  Paul Eggert  <eggert@cs.ucla.edu>
+2024-02-06  Bruno Haible  <bruno@clisp.org>
+
+       Further improve cross-compilation for midipix.
+       Reported by Ørjan Malde <red@foxi.me>.
+       * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Improve cross-compilation guess
+       for midipix.
+
+2024-02-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        ctime: improve doc
        * doc/posix-functions/asctime.texi (asctime):
index 38c0a5e71f662693522c97cce9558296042e7782..ff730b676cda14df8c7937415c84bdeadd011002 100644 (file)
@@ -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' ;;