]> Savannah Git Hosting - gnulib.git/commitdiff
canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Jun 2017 13:23:38 +0000 (15:23 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 7 Jun 2017 13:23:38 +0000 (15:23 +0200)
Reported by John E. Malmberg <wb8tyw@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00029.html>.
* lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
override, pass 2 arguments to getcwd, not 3.

ChangeLog
lib/canonicalize-lgpl.c

index 4294d512a5c8e89cfe62b523102636659307657e..af6de61113082e8a2706cfb856af3137791352c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-06-07  Bruno Haible  <bruno@clisp.org>
+
+       canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
+       Reported by John E. Malmberg <wb8tyw@gmail.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00029.html>.
+       * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
+       override, pass 2 arguments to getcwd, not 3.
+
 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        same-inode: port better to VMS 8.2 and later
index a32da91a9aedaf273c732d1104c92e78638582e9..34b3711b2c1f0e49da434825fe2cd857a9b2838a 100644 (file)
      */
 #   undef getcwd
 #  endif
-#  ifdef VMS
-    /* We want the directory in Unix syntax, not in VMS syntax.  */
+#  if defined VMS && !defined getcwd
+    /* We want the directory in Unix syntax, not in VMS syntax.
+       The gnulib override of 'getcwd' takes 2 arguments; the original VMS
+       'getcwd' takes 3 arguments.  */
 #   define __getcwd(buf, max) getcwd (buf, max, 0)
 #  else
 #   define __getcwd getcwd