diff options
-rw-r--r-- | Modules/_bsddb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index c0a5f0f..9438d97 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -4518,7 +4518,10 @@ DL_EXPORT(void) init_bsddb(void) ADD_INT(d, ENOENT); ADD_INT(d, EPERM); - +#if (DBVER >= 40) + ADD_INT(d, DB_SET_LOCK_TIMEOUT); + ADD_INT(d, DB_SET_TXN_TIMEOUT); +#endif /* The base exception class is DBError */ DBError = PyErr_NewException("bsddb._db.DBError", NULL, NULL); |