summaryrefslogtreecommitdiff
path: root/databases/p5-BDB/patches/patch-aa
blob: 747bf4c02372d243e28de15f6f0910ca449272f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-aa,v 1.1 2010/06/02 13:21:03 adam Exp $

--- BDB.xs.orig	2010-06-01 07:59:05.000000000 +0000
+++ BDB.xs
@@ -33,7 +33,7 @@
 
 #include <db.h>
 
-#if DB_VERSION_MAJOR != 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 3)
+#if DB_VERSION_MAJOR < 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 3)
 # error you need Berkeley DB 4.3 or a newer 4.x version installed
 #endif
 
@@ -1228,7 +1228,7 @@ BOOT:
           const_iv (WRITECURSOR)
           const_iv (YIELDCPU)
           const_iv (ENCRYPT_AES)
-#if DB_VERSION_MINOR < 8
+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 8)
           const_iv (XA_CREATE)
 #endif
           const_iv (BTREE)
@@ -1382,7 +1382,7 @@ BOOT:
           const_iv (PRIORITY_VERY_HIGH)
           const_iv (IGNORE_LEASE)
 #endif
-#if DB_VERSION_MINOR >= 7
+#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 7)
           //const_iv (MULTIPLE_KEY)
           const_iv (LOG_DIRECT)
           const_iv (LOG_DSYNC)