summaryrefslogtreecommitdiff
path: root/databases/iodbc/patches
diff options
context:
space:
mode:
authorjlam <jlam>2005-12-30 21:03:59 +0000
committerjlam <jlam>2005-12-30 21:03:59 +0000
commitac1cf6e702e3e8c3f8cd5b73bc6bb156de3cdd07 (patch)
tree2d66696dbb8427496bf54fe16d547b1d8350a203 /databases/iodbc/patches
parent6d96615a1d3a37f0422b923f65f3bade6b8eb891 (diff)
downloadpkgsrc-ac1cf6e702e3e8c3f8cd5b73bc6bb156de3cdd07.tar.gz
Update databases/iodbc to 3.52.3. Changes from version 2.50.3 include
adding some support for the ODBC 3.x specifications and fixing quite a lot of bugs.
Diffstat (limited to 'databases/iodbc/patches')
-rw-r--r--databases/iodbc/patches/patch-aa24
-rw-r--r--databases/iodbc/patches/patch-ab15
-rw-r--r--databases/iodbc/patches/patch-ac17
3 files changed, 56 insertions, 0 deletions
diff --git a/databases/iodbc/patches/patch-aa b/databases/iodbc/patches/patch-aa
new file mode 100644
index 00000000000..792690cc8e8
--- /dev/null
+++ b/databases/iodbc/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.3 2005/12/30 21:03:59 jlam Exp $
+
+Rip out a completely non-standard and hokey way to determine if wchar_t
+is a valid type.
+
+--- include/sqltypes.h.orig 2005-10-08 07:42:02.000000000 -0400
++++ include/sqltypes.h
+@@ -388,16 +388,7 @@ SQLGUID;
+ typedef unsigned short SQLWCHAR;
+ #else
+ # include <stdlib.h>
+-
+-# if defined(__cplusplus) || \
+- defined(_WCHAR_T) || \
+- defined(_WCHAR_T_DEFINED) || \
+- defined(_WCHAR_T_DECLARED) || \
+- defined(_BSD_WCHAR_T_DEFINED_)
+ typedef wchar_t SQLWCHAR;
+-# else
+-# error Please make sure your system supports the wchar_t type
+-# endif
+ #endif /* WIN32 */
+
+
diff --git a/databases/iodbc/patches/patch-ab b/databases/iodbc/patches/patch-ab
new file mode 100644
index 00000000000..8edae90032e
--- /dev/null
+++ b/databases/iodbc/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2005/12/30 21:03:59 jlam Exp $
+
+By inspection, driverbuf is meant to be a character buffer.
+
+--- iodbc/connect.c.orig 2005-11-04 08:14:52.000000000 -0500
++++ iodbc/connect.c
+@@ -398,7 +398,7 @@ _iodbcdm_driverload (
+ HPROC hproc;
+ SQLRETURN retcode = SQL_SUCCESS;
+ sqlstcode_t sqlstat = en_00000;
+- char *driverbuf[1024];
++ char driverbuf[1024];
+
+ if (path == NULL || ((char *) path)[0] == '\0')
+ {
diff --git a/databases/iodbc/patches/patch-ac b/databases/iodbc/patches/patch-ac
new file mode 100644
index 00000000000..b61a86afe8c
--- /dev/null
+++ b/databases/iodbc/patches/patch-ac
@@ -0,0 +1,17 @@
+$NetBSD: patch-ac,v 1.1 2005/12/30 21:03:59 jlam Exp $
+
+--- samples/Makefile.in.orig 2005-11-07 05:27:44.000000000 -0500
++++ samples/Makefile.in
+@@ -566,9 +566,9 @@ uninstall-am: uninstall-binPROGRAMS unin
+
+
+ install-exec-hook:
+- $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/samples
+- cp $(srcdir)/iodbctest.c ${DESTDIR}${pkgdatadir}/samples/iodbctest.c
+- cp $(srcdir)/Makefile.sample ${DESTDIR}${pkgdatadir}/samples/Makefile
++ $(mkinstalldirs) ${DESTDIR}${datadir}/examples/iodbc
++ cp $(srcdir)/iodbctest.c ${DESTDIR}${datadir}/examples/iodbc/iodbctest.c
++ cp $(srcdir)/Makefile.sample ${DESTDIR}${datadir}/examples/iodbc/Makefile
+
+ uninstall-hook:
+ rm -f ${DESTDIR}${pkgdatadir}/samples/iodbctest.c