BUGFIX: locktest.c from Jul 9th CVS snapshot.

John E. Malmberg malmberg at Encompasserve.org
Tue Jul 10 14:03:51 GMT 2001


The following changes were needed to get SAMBA 2.2.x Jul 9th CVS snapshot
to compile on OpenVMS 7.2-1 Alpha using Compaq C Version 6.4-005.

Note that this is just for compiling.  I still have a bit of work to do to
get it to actually run.

Compaq C is common to Tru-64 Unix, Linux on Alpha, and OpenVMS.
------------

LOCKTEST.C

There is an extra semicolon on the #define for LOCKBASE

The way the initializer for the structure is conditionally compiled out
produces a syntax error on Compaq C.  This patch fixes it.

LOCKTEST_C.DIFF
************
File PROJECT_ROOT:[SAMBA_VMS.SOURCE]LOCKTEST.C;1
   37   #define LOCKBASE 0;
   38
******
File PROJECT_ROOT:[SAMBA_VMS.SOURCE.UTILS]LOCKTEST.C;1
   37   #define LOCKBASE 0
   38
************
************
File PROJECT_ROOT:[SAMBA_VMS.SOURCE]LOCKTEST.C;1
   68   #endif
******
File PROJECT_ROOT:[SAMBA_VMS.SOURCE.UTILS]LOCKTEST.C;1
   68   #else
   69   0
   70   #endif
************

Number of difference sections found: 2
Number of difference records found: 3

DIFFERENCES /IGNORE=()/MERGED=1/OUTPUT=PROJECT_ROOT:[SAMBA_VMS.SOURCE]LOCKTEST_C.DIFF;1-
    PROJECT_ROOT:[SAMBA_VMS.SOURCE]LOCKTEST.C;1-
    PROJECT_ROOT:[SAMBA_VMS.SOURCE.UTILS]LOCKTEST.C;1

-John
wb8tyw at qsl.network
Personal Opinion Only





More information about the samba-technical mailing list