Update VMS special code to work with gnulib headers.

-John
[EMAIL PROTECTED]
Personal Opinion Only
--- /src_root/tar-1.19/lib/canonicalize-lgpl.c  Fri Sep 28 08:11:36 2007
+++ /stage_vms_src/tar-1.19/lib/canonicalize-lgpl.c     Mon Dec 17 18:37:41 2007
@@ -68,9 +68,15 @@
 # include "pathmax.h"
 # include "malloca.h"
 # if HAVE_GETCWD
-#  ifdef VMS
-    /* We want the directory in Unix syntax, not in VMS syntax.  */
-#   define __getcwd(buf, max) getcwd (buf, max, 0)
+#  ifdef __VMS
+    /* We want the directory in Unix syntax, not in VMS syntax.
+       getcwd() was defined to be rpl_getcwd earlier, so need to use
+       the real symbol name for the VMS getcwd routine.
+
+       This means that we also need a prototype for it.
+     */
+    char * decc$getcwd (char *__buffer, unsigned int __size, ...);
+#   define __getcwd(buf, max) decc$getcwd (buf, max, 0)
 #  else
 #   define __getcwd getcwd
 #  endif

Reply via email to