diff options
Diffstat (limited to 'gl/m4/mktime.m4')
| -rw-r--r-- | gl/m4/mktime.m4 | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/gl/m4/mktime.m4 b/gl/m4/mktime.m4 index eca6c4d8..fa32d138 100644 --- a/gl/m4/mktime.m4 +++ b/gl/m4/mktime.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # mktime.m4 | 1 | # mktime.m4 |
| 2 | # serial 42 | 2 | # serial 43 |
| 3 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software Foundation, | 3 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2026 Free Software Foundation, |
| 4 | dnl Inc. | 4 | dnl Inc. |
| 5 | dnl This file is free software; the Free Software Foundation | 5 | dnl This file is free software; the Free Software Foundation |
| 6 | dnl gives unlimited permission to copy and/or distribute it, | 6 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -113,22 +113,6 @@ mktime_test (time_t now) | |||
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | static int | 115 | static int |
| 116 | irix_6_4_bug () | ||
| 117 | { | ||
| 118 | /* Based on code from Ariel Faigon. */ | ||
| 119 | struct tm tm; | ||
| 120 | tm.tm_year = 96; | ||
| 121 | tm.tm_mon = 3; | ||
| 122 | tm.tm_mday = 0; | ||
| 123 | tm.tm_hour = 0; | ||
| 124 | tm.tm_min = 0; | ||
| 125 | tm.tm_sec = 0; | ||
| 126 | tm.tm_isdst = -1; | ||
| 127 | mktime (&tm); | ||
| 128 | return tm.tm_mon == 2 && tm.tm_mday == 31; | ||
| 129 | } | ||
| 130 | |||
| 131 | static int | ||
| 132 | bigtime_test (int j) | 116 | bigtime_test (int j) |
| 133 | { | 117 | { |
| 134 | struct tm tm; | 118 | struct tm tm; |
| @@ -255,12 +239,10 @@ main () | |||
| 255 | if ((result & 8) == 0 && ! bigtime_test (INT_MAX)) | 239 | if ((result & 8) == 0 && ! bigtime_test (INT_MAX)) |
| 256 | result |= 8; | 240 | result |= 8; |
| 257 | } | 241 | } |
| 258 | if (! irix_6_4_bug ()) | ||
| 259 | result |= 16; | ||
| 260 | if (! spring_forward_gap ()) | 242 | if (! spring_forward_gap ()) |
| 261 | result |= 32; | 243 | result |= 16; |
| 262 | if (! year_2050_test () || ! indiana_test ()) | 244 | if (! year_2050_test () || ! indiana_test ()) |
| 263 | result |= 64; | 245 | result |= 32; |
| 264 | return result; | 246 | return result; |
| 265 | }]])], | 247 | }]])], |
| 266 | [gl_cv_func_working_mktime=yes], | 248 | [gl_cv_func_working_mktime=yes], |
