mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Makes LMDB support optional
This commit is contained in:
parent
0a22f880dd
commit
a1a1c71d6b
@ -33,6 +33,9 @@ namespace collection {
|
||||
namespace backend {
|
||||
|
||||
|
||||
#ifdef WITH_LMDB
|
||||
|
||||
|
||||
LMDB::LMDB() : m_env(NULL) {
|
||||
mdb_env_create(&m_env);
|
||||
mdb_env_open(m_env, "./modsec-shared-collections",
|
||||
@ -646,6 +649,7 @@ end_txn:
|
||||
return;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace backend
|
||||
} // namespace collection
|
||||
|
@ -36,6 +36,8 @@
|
||||
#ifndef SRC_COLLECTION_BACKEND_LMDB_H_
|
||||
#define SRC_COLLECTION_BACKEND_LMDB_H_
|
||||
|
||||
#ifdef WITH_LMDB
|
||||
|
||||
#ifdef __cplusplus
|
||||
namespace modsecurity {
|
||||
namespace collection {
|
||||
@ -78,5 +80,6 @@ class LMDB :
|
||||
} // namespace modsecurity
|
||||
#endif
|
||||
|
||||
#endif // WITH_LMDB
|
||||
|
||||
#endif // SRC_COLLECTION_BACKEND_LMDB_H_
|
||||
|
Loading…
x
Reference in New Issue
Block a user