diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-06 08:24:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 08:24:23 (GMT) |
commit | 9b4df9e50837cc837e113053ba12ee6967d5e6c2 (patch) | |
tree | bf989e771579f835bcb49c074637a8e224bcecbc /gl/m4/timegm.m4 | |
parent | 94150ae347beb25ac369d5773834ceef7f3736d3 (diff) | |
parent | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (diff) | |
download | monitoring-plugins-9b4df9e50837cc837e113053ba12ee6967d5e6c2.tar.gz |
Merge pull request #2037 from RincewindsHat/update/gnulib-1.0
Sync with the latest Gnulib code (d4ec02b3cc) (gnulib v1.0)
Diffstat (limited to 'gl/m4/timegm.m4')
-rw-r--r-- | gl/m4/timegm.m4 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gl/m4/timegm.m4 b/gl/m4/timegm.m4 index 6079f1a..c1ff267 100644 --- a/gl/m4/timegm.m4 +++ b/gl/m4/timegm.m4 | |||
@@ -1,5 +1,6 @@ | |||
1 | # timegm.m4 serial 13 | 1 | # timegm.m4 |
2 | dnl Copyright (C) 2003, 2007, 2009-2023 Free Software Foundation, Inc. | 2 | # serial 16 |
3 | dnl Copyright (C) 2003, 2007, 2009-2024 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. |
@@ -8,8 +9,7 @@ AC_DEFUN([gl_FUNC_TIMEGM], | |||
8 | [ | 9 | [ |
9 | AC_REQUIRE([gl_TIME_H_DEFAULTS]) | 10 | AC_REQUIRE([gl_TIME_H_DEFAULTS]) |
10 | AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) | 11 | AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) |
11 | REPLACE_TIMEGM=0 | 12 | gl_CHECK_FUNCS_ANDROID([timegm], [[#include <time.h>]]) |
12 | AC_CHECK_FUNCS_ONCE([timegm]) | ||
13 | if test $ac_cv_func_timegm = yes; then | 13 | if test $ac_cv_func_timegm = yes; then |
14 | if test "$gl_cv_func_working_mktime" != yes; then | 14 | if test "$gl_cv_func_working_mktime" != yes; then |
15 | # Assume that timegm is buggy if mktime is. | 15 | # Assume that timegm is buggy if mktime is. |
@@ -17,6 +17,9 @@ AC_DEFUN([gl_FUNC_TIMEGM], | |||
17 | fi | 17 | fi |
18 | else | 18 | else |
19 | HAVE_TIMEGM=0 | 19 | HAVE_TIMEGM=0 |
20 | case "$gl_cv_onwards_func_timegm" in | ||
21 | future*) REPLACE_TIMEGM=1 ;; | ||
22 | esac | ||
20 | fi | 23 | fi |
21 | ]) | 24 | ]) |
22 | 25 | ||