Problem reported by John E. Malmberg in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00005.html
* lib/same-inode.h (SAME_INODE) [__VMS &&
80200000 <= __CRTL_VER]:
Use the usual POSIX definition.
* m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
+2017-06-04 Paul Eggert <eggert@cs.ucla.edu>
+
+ same-inode: port better to VMS 8.2 and later
+ Problem reported by John E. Malmberg in:
+ http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00005.html
+ * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
+ Use the usual POSIX definition.
+ * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
+
2017-06-01 Paul Eggert <eggert@cs.ucla.edu>
error: fix POSIX violation for va_end
# include <sys/types.h>
-# ifdef __VMS
+# if defined __VMS && __CRTL_VER < 80200000
# define SAME_INODE(a, b) \
((a).st_ino[0] == (b).st_ino[0] \
&& (a).st_ino[1] == (b).st_ino[1] \
-# sys_types_h.m4 serial 7
+# sys_types_h.m4 serial 8
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN_ONCE([gl_SYS_TYPES_H],
[
+ dnl Use sane struct stat types in OpenVMS 8.2 and later.
+ AC_DEFINE([_USE_STD_STAT], 1, [For standard stat data types on VMS.])
+
AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS])
gl_NEXT_HEADERS([sys/types.h])