Fix MODSEC-247

This commit is contained in:
brenosilva
2011-05-24 14:54:45 +00:00
parent 0cf21202ef
commit 6d7781754b
3 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
/* 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

View File

@@ -23,6 +23,7 @@
#include "msc_util.h"
#include <apr_lib.h>
#include "modsecurity_config.h"
/**
* NOTE: Be careful as these can ONLY be used on static values for X.