Skip to content

Commit f7ecbbf

Browse files
authored
bugfix: don't include pcre.h with PCRE2 used.
pcre.h is a PCRE header and is not exposed by PCRE2 library causing compilation error as the header is not found. Don't include pcre.h if nginx is compiled with PCRE2 support enabled. Fixes: 08841a2 ("feature: support pcre2") Signed-off-by: Christian Marangi <[email protected]>
1 parent 08841a2 commit f7ecbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_stream_lua_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "ngx_stream_lua_request.h"
3636

3737

38-
#if (NGX_PCRE)
38+
#if defined(NGX_PCRE) && !defined(NGX_PCRE2)
3939

4040
#include <pcre.h>
4141

0 commit comments

Comments
 (0)