You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2023/04/19 10:39:20 UTC

svn commit: r1909241 - in /httpd/httpd/trunk: changes-entries/pr66571.txt modules/mappers/config9.m4

Author: rpluem
Date: Wed Apr 19 10:39:19 2023
New Revision: 1909241

URL: http://svn.apache.org/viewvc?rev=1909241&view=rev
Log:
* Add server directory to include path as mod_rewrite requires test_char.h.

PR: 66571
Submitted by: Valeria Petrov <va...@spinetix.com>
Reviewed by: rpluem

Added:
    httpd/httpd/trunk/changes-entries/pr66571.txt   (with props)
Modified:
    httpd/httpd/trunk/modules/mappers/config9.m4

Added: httpd/httpd/trunk/changes-entries/pr66571.txt
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/changes-entries/pr66571.txt?rev=1909241&view=auto
==============================================================================
--- httpd/httpd/trunk/changes-entries/pr66571.txt (added)
+++ httpd/httpd/trunk/changes-entries/pr66571.txt Wed Apr 19 10:39:19 2023
@@ -0,0 +1,2 @@
+  *) mod_rewrite: Add server directory to include path as mod_rewrite requires
+     test_char.h. PR 66571 [Valeria Petrov <va...@spinetix.com>]

Propchange: httpd/httpd/trunk/changes-entries/pr66571.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: httpd/httpd/trunk/modules/mappers/config9.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/config9.m4?rev=1909241&r1=1909240&r2=1909241&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/config9.m4 (original)
+++ httpd/httpd/trunk/modules/mappers/config9.m4 Wed Apr 19 10:39:19 2023
@@ -14,6 +14,11 @@ APACHE_MODULE(userdir, mapping of reques
 APACHE_MODULE(alias, mapping of requests to different filesystem parts, , , yes)
 APACHE_MODULE(rewrite, rule based URL manipulation, , , most)
 
+if test "x$enable_rewrite" != "xno"; then
+    # mod_rewrite needs test_char.h
+    APR_ADDTO(INCLUDES, [-I\$(top_builddir)/server])
+fi
+
 APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
 
 APACHE_MODPATH_FINISH