summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-11-13 21:54:13 +0000
committerjoerg <joerg@pkgsrc.org>2010-11-13 21:54:13 +0000
commitb6eda4820bb37f3b8793ae9726ed0f5a52118426 (patch)
tree65838fe36fbfed3aa574e9eb47897ab276fe3dbf /databases
parent8af46e3f404e6ac1ec37547d3919319cf5ea3a4d (diff)
downloadpkgsrc-b6eda4820bb37f3b8793ae9726ed0f5a52118426.tar.gz
Use pread/pwrite on NetBSD to reduce the number of system calls a lot.
Bump revision.
Diffstat (limited to 'databases')
-rw-r--r--databases/sqlite3/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile
index 5969bf66819..7a89bd9e179 100644
--- a/databases/sqlite3/Makefile
+++ b/databases/sqlite3/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.34 2010/10/25 07:44:32 tnn Exp $
+# $NetBSD: Makefile,v 1.35 2010/11/13 21:54:13 joerg Exp $
DISTNAME= sqlite-amalgamation-3.7.3
PKGNAME= ${DISTNAME:S/sqlite-amalgamation/sqlite3/}
+PKGREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://www.hwaci.com/sw/sqlite/ \
http://www.sqlite.org/
@@ -24,6 +25,10 @@ INSTALLATION_DIRS+= ${PKGMANDIR}/man1
.include "../../mk/bsd.prefs.mk"
+# In the past, Linux had database corruption issues with pread, so
+# only enable it on safe platforms.
+CFLAGS.NetBSD+= -DUSE_PREAD
+
# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0