]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Add server directory to include path as mod_rewrite requires test_char.h.
authorRuediger Pluem <rpluem@apache.org>
Wed, 19 Apr 2023 10:39:19 +0000 (10:39 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 19 Apr 2023 10:39:19 +0000 (10:39 +0000)
PR: 66571
Submitted by: Valeria Petrov <valeria.petrov@spinetix.com>
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909241 13f79535-47bb-0310-9956-ffa450edef68

changes-entries/pr66571.txt [new file with mode: 0644]
modules/mappers/config9.m4

diff --git a/changes-entries/pr66571.txt b/changes-entries/pr66571.txt
new file mode 100644 (file)
index 0000000..bfa89af
--- /dev/null
@@ -0,0 +1,2 @@
+  *) mod_rewrite: Add server directory to include path as mod_rewrite requires
+     test_char.h. PR 66571 [Valeria Petrov <valeria.petrov@spinetix.com>]
index 55a97ab9932f0959e4847966026eb0aeec31bc2f..7120b729b7bf7192281b0de45fb21e856f8a4960 100644 (file)
@@ -14,6 +14,11 @@ APACHE_MODULE(userdir, mapping of requests to user-specific directories, , , mos
 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