You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
c005012127
FreeTDS 1.0 removed some constants that SQSH depends upon, breaking compatibility. This patch re-defines those constants the same way that sqsh-3.0 (unreleased) does.
26 lines
735 B
Diff
26 lines
735 B
Diff
--- 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;
|