diff options
author | adam <adam@pkgsrc.org> | 2011-04-17 09:14:13 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2011-04-17 09:14:13 +0000 |
commit | 97e6c463befaeb64e4eb8ea2bc7ae618b3fabd81 (patch) | |
tree | f8d4a6c2635d3b1f6f1727d0eb167a4ddce0fe45 /databases/sqlite3 | |
parent | 38af49d7c2558bda89b71ee067fde22db9ccd412 (diff) | |
download | pkgsrc-97e6c463befaeb64e4eb8ea2bc7ae618b3fabd81.tar.gz |
Fix crash on NetBSD
Diffstat (limited to 'databases/sqlite3')
-rw-r--r-- | databases/sqlite3/Makefile | 3 | ||||
-rw-r--r-- | databases/sqlite3/distinfo | 3 | ||||
-rw-r--r-- | databases/sqlite3/patches/patch-sqlite3.c | 15 |
3 files changed, 19 insertions, 2 deletions
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile index 67451dd72b9..785a9cf180c 100644 --- a/databases/sqlite3/Makefile +++ b/databases/sqlite3/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.40 2011/04/14 07:10:20 adam Exp $ +# $NetBSD: Makefile,v 1.41 2011/04/17 09:14:13 adam Exp $ DISTNAME= sqlite-autoconf-3070601 PKGNAME= sqlite3-3.7.6.1 +PKGREVISION= 1 CATEGORIES= databases MASTER_SITES= http://www.hwaci.com/sw/sqlite/ \ http://www.sqlite.org/ diff --git a/databases/sqlite3/distinfo b/databases/sqlite3/distinfo index 707089ce5b9..ad1478ea63a 100644 --- a/databases/sqlite3/distinfo +++ b/databases/sqlite3/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.59 2011/04/14 07:10:20 adam Exp $ +$NetBSD: distinfo,v 1.60 2011/04/17 09:14:13 adam Exp $ SHA1 (sqlite-autoconf-3070601.tar.gz) = 8e3d1f93576374238875197b1fb472332e339ea7 RMD160 (sqlite-autoconf-3070601.tar.gz) = a7341ce16c52b5023e172c28782b232c18e19f87 Size (sqlite-autoconf-3070601.tar.gz) = 1720170 bytes +SHA1 (patch-sqlite3.c) = b8bd076cd2c6fac9b076cdb2a877443703c5909f diff --git a/databases/sqlite3/patches/patch-sqlite3.c b/databases/sqlite3/patches/patch-sqlite3.c new file mode 100644 index 00000000000..a9fbc12a741 --- /dev/null +++ b/databases/sqlite3/patches/patch-sqlite3.c @@ -0,0 +1,15 @@ +$NetBSD: patch-sqlite3.c,v 1.1 2011/04/17 09:14:13 adam Exp $ + +Fix open() signature. + +--- sqlite3.c.orig 2011-04-17 08:42:16.000000000 +0000 ++++ sqlite3.c +@@ -24413,7 +24413,7 @@ static struct unix_syscall { + sqlite3_syscall_ptr pDefault; /* Default value */ + } aSyscall[] = { + { "open", (sqlite3_syscall_ptr)open, 0 }, +-#define osOpen ((int(*)(const char*,int,int))aSyscall[0].pCurrent) ++#define osOpen ((int(*)(const char*,int,...))aSyscall[0].pCurrent) + + { "close", (sqlite3_syscall_ptr)close, 0 }, + #define osClose ((int(*)(int))aSyscall[1].pCurrent) |