Skip to content

Commit

Permalink
fix apache module compilation for versions < 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Jan 5, 2016
1 parent b1d2b80 commit 93fef0d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apache/mod_mapcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,14 @@ static const char* mapcache_add_alias(cmd_parms *cmd, void *cfg, const char *ali
mapcache_server_cfg *sconfig;
mapcache_alias_entry *alias_entry;
mapcache_context *ctx;
unsigned forbidden = NOT_IN_DIRECTORY|NOT_IN_FILES;
const char *err;

const char *err = ap_check_cmd_context(cmd, NOT_IN_DIRECTORY|NOT_IN_FILES|NOT_IN_HTACCESS);
#if (AP_SERVER_MAJORVERSION_NUMBER > 2) || (AP_SERVER_MINORVERSION_NUMBER >= 4)
forbidden |= NOT_IN_HTACCESS;
#endif

err = ap_check_cmd_context(cmd, forbidden);
if (err) {
return err;
}
Expand Down

0 comments on commit 93fef0d

Please sign in to comment.