--- src/cmd_connect.c.orig	2017-04-25 18:09:43.000000000 -0700
+++ src/cmd_connect.c	2017-04-25 18:10:44.000000000 -0700
@@ -45,10 +45,22 @@
 static char RCS_Id[] = "$Id: cmd_connect.c,v 1.34 2013/08/22 19:54:34 mwesdorp Exp $";
 USE(RCS_Id)
 #endif /* !defined(lint) */
 
 /*
+ *  patch taken from sqsh-3.0 development branch
+ *  Define FreeTDS enumerated values to prevent compile errors
+ *  when using different versions of FreeTDS.
+ */
+#define CS_TDS_70 7365
+#define CS_TDS_71 7366
+#define CS_TDS_72 7367
+#define CS_TDS_73 7368
+#define CS_TDS_74 7369
+#define CS_TDS_80 CS_TDS_71
+
+/*
  * sqsh-2.1.6 - Structure for Network Security Options
 */
 typedef struct _NetSecService {
     CS_INT  service;
     CS_CHAR optchar;
