summaryrefslogtreecommitdiffstats
path: root/gl/m4/year2038.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/year2038.m4')
-rw-r--r--gl/m4/year2038.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/gl/m4/year2038.m4 b/gl/m4/year2038.m4
index da0f8d7..2e4427e 100644
--- a/gl/m4/year2038.m4
+++ b/gl/m4/year2038.m4
@@ -1,5 +1,5 @@
1# year2038.m4 serial 7 1# year2038.m4 serial 8
2dnl Copyright (C) 2017-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2017-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -7,6 +7,12 @@ dnl with or without modifications, as long as this notice is preserved.
7dnl Attempt to ensure that 'time_t' can go past the year 2038 and that 7dnl Attempt to ensure that 'time_t' can go past the year 2038 and that
8dnl the functions 'time', 'stat', etc. work with post-2038 timestamps. 8dnl the functions 'time', 'stat', etc. work with post-2038 timestamps.
9 9
10m4_ifdef([AC_SYS_YEAR2038], [
11 AC_DEFUN([gl_YEAR2038_EARLY])
12 AC_DEFUN([gl_YEAR2038], [AC_SYS_YEAR2038])
13 AC_DEFUN([gl_YEAR2038_BODY], [_AC_SYS_YEAR2038])
14], [
15
10AC_DEFUN([gl_YEAR2038_EARLY], 16AC_DEFUN([gl_YEAR2038_EARLY],
11[ 17[
12 AC_REQUIRE([AC_CANONICAL_HOST]) 18 AC_REQUIRE([AC_CANONICAL_HOST])
@@ -122,3 +128,5 @@ AC_DEFUN([gl_YEAR2038],
122[ 128[
123 gl_YEAR2038_BODY([require-year2038-safe]) 129 gl_YEAR2038_BODY([require-year2038-safe])
124]) 130])
131
132]) # m4_ifndef AC_SYS_YEAR2038