summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-17 13:31:11 +0100
committerBruno Haible <bruno@clisp.org>2023-03-17 13:31:11 +0100
commit1d546b1cd1cca688fdc7e149b1fd0672439dfaa7 (patch)
tree043758861ec6c3f4327804e3549f991f60ff4439 /doc
parent6cac6f014973dce669f9fa50cce7540eda711050 (diff)
downloadgnulib-1d546b1cd1cca688fdc7e149b1fd0672439dfaa7.tar.gz
time: Fix test failure on native Windows.
* m4/time.m4 (gl_FUNC_TIME): Guess that it does not work on native Windows. * modules/time (Depends-on): Add gettimeofday. * doc/posix-functions/time.texi: Mention the bug on Windows.
Diffstat (limited to 'doc')
-rw-r--r--doc/posix-functions/time.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/posix-functions/time.texi b/doc/posix-functions/time.texi
index a8e9abcddf..5d7c719594 100644
--- a/doc/posix-functions/time.texi
+++ b/doc/posix-functions/time.texi
@@ -12,10 +12,11 @@ Portability problems fixed by Gnulib:
This function is not consistent with @code{gettimeofday} and @code{timespec_get}
on some platforms:
@c https://sourceware.org/bugzilla/show_bug.cgi?id=30200
-glibc 2.31 or newer on Linux.
-Namely, in the first 1 to 2.5 milliseconds of every second, @code{time}
-returns a value that is one less than the @code{tv_sec} part of the return
-value of @code{gettimeofday} or @code{timespec_get}.
+glibc 2.31 or newer on Linux, native Windows.
+Namely, in the first 1 to 2.5 milliseconds of every second (or, on Windows,
+in the first 5 milliseconds of every second), @code{time} returns a value
+that is one less than the @code{tv_sec} part of the return value of
+@code{gettimeofday} or @code{timespec_get}.
@end itemize
Portability problems not fixed by Gnulib: