From ac4815f4921caab00657bbf557fc72a8d5a50c71 Mon Sep 17 00:00:00 2001 From: Breno Silva Date: Tue, 27 Nov 2012 00:19:31 -0400 Subject: [PATCH] modsecurity_config.h was empty breaking SecUploadModeFile directive --- apache2/modsecurity_config.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/apache2/modsecurity_config.h b/apache2/modsecurity_config.h index c9500446..720a3c5f 100644 --- a/apache2/modsecurity_config.h +++ b/apache2/modsecurity_config.h @@ -1 +1,24 @@ -/* This file is left empty for building on Windows. */ +/* Some APR files define PACKAGE* constants, which may conflict + * so this is here to prevent that by removing them. + */ + +/* Undefine all these so there are no conflicts */ +#undef PACKAGE +#undef PACKAGE_BUGREPORT +#undef PACKAGE_NAME +#undef PACKAGE_STRING +#undef PACKAGE_TARNAME +#undef PACKAGE_URL +#undef PACKAGE_VERSION + +/* Include the real autoconf header */ +#include "modsecurity_config_auto.h" + +/* Undefine all these (again) so there are no conflicts */ +#undef PACKAGE +#undef PACKAGE_BUGREPORT +#undef PACKAGE_NAME +#undef PACKAGE_STRING +#undef PACKAGE_TARNAME +#undef PACKAGE_URL +#undef PACKAGE_VERSION