]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
same-inode: port better to VMS 8.2 and later
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Jun 2017 21:25:43 +0000 (14:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Jun 2017 21:28:35 +0000 (14:28 -0700)
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.

ChangeLog
lib/same-inode.h
m4/sys_types_h.m4

index ae9e39d06fa41ceb27a9afa30e59b0832835f8a2..4294d512a5c8e89cfe62b523102636659307657e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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
index a08bc4ec0d1960421ec8ad9303d45252f6501c87..0c18563967e277b59f096995555698467eae8dfb 100644 (file)
@@ -20,7 +20,7 @@
 
 # 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] \
index e5906709f692aba98206764eb9d41a8b5d98fe0e..ec0860be905c7db86a4d6fd5e466c7a572efea06 100644 (file)
@@ -1,4 +1,4 @@
-# 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,
@@ -6,6 +6,9 @@ dnl with or without modifications, as long as this notice is preserved.
 
 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])