mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Fix compilation when YAJL is not present
This commit is contained in:
committed by
Felipe Zimmerle
parent
9d33990550
commit
6f47462110
@@ -13,6 +13,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifdef WITH_YAJL
|
||||
|
||||
#include "src/request_body_processor/json.h"
|
||||
|
||||
#include <list>
|
||||
@@ -273,3 +276,7 @@ JSON::~JSON() {
|
||||
|
||||
} // namespace RequestBodyProcessor
|
||||
} // namespace modsecurity
|
||||
|
||||
|
||||
#endif // WITH_YAJL
|
||||
|
||||
|
@@ -14,6 +14,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifdef WITH_YAJL
|
||||
|
||||
#include <yajl/yajl_parse.h>
|
||||
|
||||
#include <string>
|
||||
@@ -82,3 +84,5 @@ class JSON {
|
||||
|
||||
|
||||
#endif // SRC_REQUEST_BODY_PROCESSOR_JSON_H_
|
||||
|
||||
#endif // WITH_YAJL
|
||||
|
Reference in New Issue
Block a user