Skip to content
Browse files

Backport ap_is_HTTP_VALID_RESPONSE macro if not present

Based on commit ee7679f

Author: Julien Thomas <julthomas@free.fr>
Signed-off-by: Michał Pokrywka <michal.pokrywka@gmail.com>
  • Loading branch information...
1 parent cc8954b commit 87bb7a971a94480689b67428586a2e1d565e9b3f @mpokrywka mpokrywka committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 ap_backports.h
View
8 ap_backports.h
@@ -1,3 +1,11 @@
+/**
+ * This macro is not present in Apache HTTP server version 2.2.3
+ * Red-Hat 5 / CentOS 5
+ */
+#ifndef ap_is_HTTP_VALID_RESPONSE
+# define ap_is_HTTP_VALID_RESPONSE(x) (((x) >= 100)&&((x) < 600))
+#endif
+
/*
* The following is a patch ported from mod_fcgid for Apache 2.0 releases
* which don't provide a version of apr_shm_remove.

0 comments on commit 87bb7a9

Please sign in to comment.
Something went wrong with that request. Please try again.