Thanks for the heads-up. I installed the attached. It's not surprising that OpenVMS mktime fails the test.
>From afc5fb6e9cb7a64609a7d18c260ed49aa98431a1 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Thu, 21 Sep 2017 21:39:59 -0700
Subject: [PATCH] mktime: port to OpenVMS

Problem reported by John E. Malmberg in:
https://lists.gnu.org/archive/html/bug-gnulib/2017-09/msg00100.html
* m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
---
 ChangeLog    | 7 +++++++
 m4/mktime.m4 | 6 +++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 6a0b496..82ecf53 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-09-21  Paul Eggert  <[email protected]>
+
+	mktime: port to OpenVMS
+	Problem reported by John E. Malmberg in:
+	https://lists.gnu.org/archive/html/bug-gnulib/2017-09/msg00100.html
+	* m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
+
 2017-09-16  Paul Eggert  <[email protected]>
 
 	manywarnings: port to GCC on 64-bit MS-Windows
diff --git a/m4/mktime.m4 b/m4/mktime.m4
index 8566684..1461905 100644
--- a/m4/mktime.m4
+++ b/m4/mktime.m4
@@ -1,4 +1,4 @@
-# serial 29
+# serial 30
 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2017 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -55,6 +55,10 @@ AC_DEFUN([gl_FUNC_MKTIME_WORKS],
 # include <signal.h>
 #endif
 
+#ifndef TIME_T_IS_SIGNED
+# define TIME_T_IS_SIGNED 0
+#endif
+
 /* Work around redefinition to rpl_putenv by other config tests.  */
 #undef putenv
 
-- 
2.7.4

Reply via email to