summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-01-14 14:37:44 +0000
committerobache <obache@pkgsrc.org>2007-01-14 14:37:44 +0000
commitc63c842717ac61d00980cc8226e6dd2b04a1f856 (patch)
tree1385b7990996c34f95803b66bbacacb21895d471 /databases
parentcda98b8a0acf0f77c7455c3e645887784d73577f (diff)
downloadpkgsrc-c63c842717ac61d00980cc8226e6dd2b04a1f856.tar.gz
*BSD dosen't have strndup.
Pointed out by Yasushi Oshima in PR 33160. Bump PKGREVISION.
Diffstat (limited to 'databases')
-rw-r--r--databases/myodbc/Makefile4
-rw-r--r--databases/myodbc/distinfo3
-rw-r--r--databases/myodbc/patches/patch-ab15
3 files changed, 19 insertions, 3 deletions
diff --git a/databases/myodbc/Makefile b/databases/myodbc/Makefile
index 8470bbabdda..5cf64f4606c 100644
--- a/databases/myodbc/Makefile
+++ b/databases/myodbc/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.16 2007/01/14 12:28:56 obache Exp $
+# $NetBSD: Makefile,v 1.17 2007/01/14 14:37:44 obache Exp $
#
DISTNAME= mysql-connector-odbc-3.51.12
PKGNAME= ${DISTNAME:S/mysql-connector-odbc/myodbc/}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL:=MyODBC3/}
diff --git a/databases/myodbc/distinfo b/databases/myodbc/distinfo
index 99aae1883c3..9d6831043a9 100644
--- a/databases/myodbc/distinfo
+++ b/databases/myodbc/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2006/01/23 18:53:45 xtraeme Exp $
+$NetBSD: distinfo,v 1.5 2007/01/14 14:37:44 obache Exp $
SHA1 (mysql-connector-odbc-3.51.12.tar.gz) = c4a8de079b255d2aa745295f4121ec5e9091de59
RMD160 (mysql-connector-odbc-3.51.12.tar.gz) = 295bdca51ad5fd7bf0a56ccb161fe5a0463e71ef
Size (mysql-connector-odbc-3.51.12.tar.gz) = 979942 bytes
SHA1 (patch-aa) = d49eb5b4c637303063784a63790411342593b855
+SHA1 (patch-ab) = a1a5da635425ccd029d12d00cb1ac3516618db45
diff --git a/databases/myodbc/patches/patch-ab b/databases/myodbc/patches/patch-ab
new file mode 100644
index 00000000000..d1bd4fac672
--- /dev/null
+++ b/databases/myodbc/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2007/01/14 14:37:44 obache Exp $
+
+--- util/MYODBCUtilReadDataSourceStr.c.orig 2005-10-09 19:33:40.000000000 +0000
++++ util/MYODBCUtilReadDataSourceStr.c
+@@ -19,8 +19,9 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
+ #include "MYODBCUtil.h"
++#include <sys/param.h>
+
+-#if defined(__APPLE__) || defined(WIN32) || defined(__sparc)
++#if defined(__APPLE__) || defined(WIN32) || defined(__sparc) || defined(BSD)
+ char *strndup( const char *s, size_t n )
+ {
+ size_t nAvail;