diff options
Diffstat (limited to 'gl/m4/fstat.m4')
| -rw-r--r-- | gl/m4/fstat.m4 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gl/m4/fstat.m4 b/gl/m4/fstat.m4 index 7cb2edb0..e89bbc32 100644 --- a/gl/m4/fstat.m4 +++ b/gl/m4/fstat.m4 | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | # fstat.m4 serial 8 | 1 | # fstat.m4 |
| 2 | dnl Copyright (C) 2011-2023 Free Software Foundation, Inc. | 2 | # serial 10 |
| 3 | dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 6 | 8 | ||
| 7 | AC_DEFUN([gl_FUNC_FSTAT], | 9 | AC_DEFUN([gl_FUNC_FSTAT], |
| 8 | [ | 10 | [ |
| @@ -10,10 +12,10 @@ AC_DEFUN([gl_FUNC_FSTAT], | |||
| 10 | AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) | 12 | AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) |
| 11 | 13 | ||
| 12 | case "$host_os" in | 14 | case "$host_os" in |
| 13 | mingw* | solaris*) | 15 | darwin* | mingw* | windows* | solaris*) |
| 16 | dnl macOS and Solaris stat can return a negative tv_nsec. | ||
| 14 | dnl On MinGW, the original stat() returns st_atime, st_mtime, | 17 | dnl On MinGW, the original stat() returns st_atime, st_mtime, |
| 15 | dnl st_ctime values that are affected by the time zone. | 18 | dnl st_ctime values that are affected by the time zone. |
| 16 | dnl Solaris stat can return a negative tv_nsec. | ||
| 17 | REPLACE_FSTAT=1 | 19 | REPLACE_FSTAT=1 |
| 18 | ;; | 20 | ;; |
| 19 | esac | 21 | esac |
