[PATCH] dblib_define for VMS (was Re: [freetds] 0.63 Release Candidate 2)

Craig A. Berry craigberry at mac.com
Wed Dec 1 20:54:38 EST 2004


James K. Lowden wrote:
> http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-0.63RC2.tar.gz
> 
> * Includes Bill's fix to dbresults/dbmorecmds.
> * libtds is version 4.0.0.
> * some updated documentation.
> 
> Please test it with your favorite OS.  I'm guessing I'll release it Sunday
> if there are no complaints.  

RC2 failed to build on VMS without the attached patch. Sometime in the
last couple of weeks, @msdblib_define@ got changed to @dblib_define@ in
tds_sysdep_public.h.in, and what to replace it with also changed. This
catches us up.

-------------- next part --------------
--- vms/descrip_mms.template;-0	Sun Nov  7 02:59:34 2004
+++ vms/descrip_mms.template	Wed Dec  1 14:26:33 2004
@@ -60,11 +60,9 @@
 .ENDIF
 
 .IFDEF MSDBLIB
-MSDBLIB_DEFINE = define
-MSDBLIB_TRUE = 1
+DBLIB_DEFINE = define MSDBLIB 1
 .ELSE
-MSDBLIB_DEFINE = undef
-MSDBLIB_TRUE =
+DBLIB_DEFINE = define SYBDBLIB 1
 .ENDIF
 
 CC = CC/DECC
@@ -209,7 +207,7 @@
 	@ write vmsconfigtmp "POSITION (BEGINNING_OF (main_buffer));"
 	@ write vmsconfigtmp "eve_global_replace(""@tds_sysdep_intptr_type@"",""int"");"
 	@ write vmsconfigtmp "POSITION (BEGINNING_OF (main_buffer));"
-	@ write vmsconfigtmp "eve_global_replace(""@msdblib_define@"",""#$(MSDBLIB_DEFINE) MSDBLIB $(MSDBLIB_TRUE)"");"
+	@ write vmsconfigtmp "eve_global_replace(""@dblib_define@"",""#$(DBLIB_DEFINE)"");"
 	@ write vmsconfigtmp "out_file := GET_INFO (COMMAND_LINE, ""output_file"");"
 	@ write vmsconfigtmp "WRITE_FILE (main_buffer, out_file);"
 	@ write vmsconfigtmp "quit;"


More information about the FreeTDS mailing list