mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Makes LMDB support optional
This commit is contained in:
@@ -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_
|
||||
|
Reference in New Issue
Block a user