bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch]gnu tar 1.19 canonicalize-lgpl_c.gdiff


From: John E. Malmberg
Subject: [patch]gnu tar 1.19 canonicalize-lgpl_c.gdiff
Date: Mon, 31 Mar 2008 22:20:03 -0500
User-agent: Mozilla/5.0 (X11; U; OpenVMS AlphaServer_DS10_617_MHz; en-US; rv:1.7) Gecko/20040621

Update VMS special code to work with gnulib headers.

-John
address@hidden
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

[Prev in Thread] Current Thread [Next in Thread]