openresty / lua-nginx-module

Embed the Power of Lua into NGINX HTTP servers
https://openresty.org/
11.33k stars 2.03k forks source link

bugfix: don't include pcre.h with PCRE2 used #2236

Closed Ansuel closed 1 year ago

Ansuel commented 1 year ago

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: cb83e33e2657 ("feature: support pcre2")

Ansuel commented 1 year ago

@swananan doing it. Also I force pushed as I added !defined to make this more clear.