summaryrefslogtreecommitdiffstats
path: root/gl/m4/time_r.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/time_r.m4')
-rw-r--r--gl/m4/time_r.m413
1 files changed, 7 insertions, 6 deletions
diff --git a/gl/m4/time_r.m4 b/gl/m4/time_r.m4
index adce438a..96f5c5b5 100644
--- a/gl/m4/time_r.m4
+++ b/gl/m4/time_r.m4
@@ -1,9 +1,12 @@
1dnl Reentrant time functions: localtime_r, gmtime_r. 1# time_r.m4
2 2# serial 1
3dnl Copyright (C) 2003, 2006-2023 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2006-2025 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
8
9dnl Reentrant time functions: localtime_r, gmtime_r.
7 10
8dnl Written by Paul Eggert. 11dnl Written by Paul Eggert.
9 12
@@ -57,9 +60,7 @@ AC_DEFUN([gl_TIME_R],
57 [gl_cv_time_r_posix=yes], 60 [gl_cv_time_r_posix=yes],
58 [gl_cv_time_r_posix=no]) 61 [gl_cv_time_r_posix=no])
59 ]) 62 ])
60 if test $gl_cv_time_r_posix = yes; then 63 if test $gl_cv_time_r_posix != yes; then
61 REPLACE_LOCALTIME_R=0
62 else
63 REPLACE_LOCALTIME_R=1 64 REPLACE_LOCALTIME_R=1
64 fi 65 fi
65 else 66 else