Skip to content

Commit

Permalink
Fail compilation on unsupported httpd versions (< 2.4.49)
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Nov 8, 2023
1 parent b45212e commit ade54c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions native/mod_proxy_cluster/mod_proxy_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
/* define HAVE_CLUSTER_EX_DEBUG to have extented debug in mod_cluster */
#define HAVE_CLUSTER_EX_DEBUG 0

/* prevent old 2.2.x httpd version to compile */
#if AP_MODULE_MAGIC_AT_LEAST(20101223,1)
/* prevent httpd versions older than 2.4.49 to compile */
#if AP_MODULE_MAGIC_AT_LEAST(20120211,116)
#else
#error "httpd 2.2.x NOT SUPPORTED!"
#error "httpd 2.4.48 and older are NOT SUPPORTED!"
#endif

/* define OUR load balancer method names (lbpname), must start by MC */
Expand Down

0 comments on commit ade54c8

Please sign in to comment.