diff options
Diffstat (limited to 'security/nss/lib/softoken/cdbhdl.h')
-rw-r--r-- | security/nss/lib/softoken/cdbhdl.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/security/nss/lib/softoken/cdbhdl.h b/security/nss/lib/softoken/cdbhdl.h index b606e9876..faa8a21ad 100644 --- a/security/nss/lib/softoken/cdbhdl.h +++ b/security/nss/lib/softoken/cdbhdl.h @@ -51,4 +51,19 @@ struct NSSLOWCERTCertDBHandleStr { PZMonitor *dbMon; }; +#ifdef DBM_USING_NSPR +#define NO_RDONLY PR_RDONLY +#define NO_RDWR PR_RDWR +#define NO_CREATE (PR_RDWR | PR_CREATE_FILE | PR_TRUNCATE) +#else +#define NO_RDONLY O_RDONLY +#define NO_RDWR O_RDWR +#define NO_CREATE (O_RDWR | O_CREAT | O_TRUNC) +#endif + +typedef DB * (*rdbfunc)(const char *appName, const char *prefix, + const char *type, int flags); + +DB * rdbopen(const char *appName, const char *prefix, + const char *type, int flags); #endif |