rsync-2.5.1 / lib patches
John E. Malmberg
wb8tyw at qsl.net
Mon Jan 7 12:33:22 EST 2002
The following zlib files need patches in order to compile using Compaq C
on OpenVMS. These should work on any ANSI compliant compiler.
Operating System: OpenVMS ALPHA V7.3
Compiler: Compaq C T6.5
Compiler switches: /WARN=ENABLE=(LEVEL4, QUESTCODE)
fnmatch.c and mdfour.c. Compaq C on OpenVMS can not deal with relative
path names in #include files.
Also the local prototype for getenv() does not match the one in stdlib.h.
-John
wb8tyw at qsl.network
Personal Opinion Only
PROJECT_ROOT:[rsync_vms.LIB]FNMATCH.GDIFF;1
--- ref_lib:fnmatch.c Sat Jan 29 05:35:04 2000
+++ lcl_lib:fnmatch.c Sun Jan 6 08:42:06 2002
@@ -1,4 +1,9 @@
+/* Converted by prj_src:unix_c_to_vms_c.tpu AND prj_lib:fnmatch.tpu on
6-JAN-2
002 08:42:06.02 OPENVMS_AXP */
+#ifdef __VMS
+#include "rsync.h"
+#else
#include "../rsync.h"
+#endif
#ifndef HAVE_FNMATCH
/* ----- THE FOLLOWING UP TO 'END' is glibc-2.1.2 posix/fnmatch.c
@@ -128,7 +133,11 @@
whose names are inconsistent. */
# if !defined _LIBC && !defined getenv
+#ifdef __VMS
+/* defined in stdlib.h */
+#else
extern char *getenv ();
+#endif
# endif
# ifndef errno
PROJECT_ROOT:[rsync_vms.LIB]MDFOUR.GDIFF;1
--- ref_lib:mdfour.c Thu Nov 29 18:21:10 2001
+++ lcl_lib:mdfour.c Sun Jan 6 08:42:14 2002
@@ -1,3 +1,4 @@
+/* Converted by prj_src:unix_c_to_vms_c.tpu on 6-JAN-2002 08:42:14.63
OPENVMS_
AXP */
/*
Unix SMB/Netbios implementation.
Version 1.9.
@@ -209,7 +210,11 @@
}
#if 0
+#ifdef __VMS
+#include "md4.h"
+#else
#include "../md4.h"
+#endif
static void file_checksum2(char *fname)
{
More information about the rsync
mailing list