mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-14 07:27:09 +03:00
Fixed compiles using PCRE pre v6.5 (ie Apache includes 5.0)
This commit is contained in:
@@ -22,6 +22,17 @@
|
||||
typedef struct msc_regex_t msc_regex_t;
|
||||
|
||||
#include "pcre.h"
|
||||
|
||||
#ifndef PCRE_ERROR_MATCHLIMIT
|
||||
/* Define for compile, but not valid in this version of PCRE. */
|
||||
#define PCRE_ERROR_MATCHLIMIT (-8)
|
||||
#endif /* PCRE_ERROR_MATCHLIMIT */
|
||||
|
||||
#ifndef PCRE_ERROR_RECURSIONLIMIT
|
||||
/* Define for compile, but not valid in this version of PCRE. */
|
||||
#define PCRE_ERROR_RECURSIONLIMIT (-21)
|
||||
#endif /* PCRE_ERROR_RECURSIONLIMIT */
|
||||
|
||||
#include "apr_general.h"
|
||||
#include "modsecurity.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user