diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-29 20:35:00 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-29 20:35:00 +0400 |
commit | 4c4773d96b1b2a157009590908fce032696281c5 (patch) | |
tree | c9709f5a21b4eafbfee04327884cb5c6d39006e4 /config.h.in | |
parent | 513e304bc6255492eee5c78c97d222037087f429 (diff) | |
download | rspamd-4c4773d96b1b2a157009590908fce032696281c5.tar.gz rspamd-4c4773d96b1b2a157009590908fce032696281c5.zip |
* Fix build under CentOS 5 with old glib 2.12
* Fix build of rspamd with CMAKE_BINARY_DIR differs from CMAKE_SOURCE_DIR
Rework include style.
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index 4d8af2e6d..81b797334 100644 --- a/config.h.in +++ b/config.h.in @@ -134,6 +134,11 @@ #cmakedefine HAVE_CLOCK_GETTIME 1 +#cmakedefine GLIB_COMPAT 1 +#cmakedefine GLIB_RE_COMPAT 1 +#cmakedefine GLIB_UNISCRIPT_COMPAT 1 +#cmakedefine GLIB_HASH_COMPAT 1 + #define RVERSION "${RSPAMD_VERSION}" #define RID "${ID}" #define RSPAMD_MASTER_SITE_URL "${RSPAMD_MASTER_SITE_URL}" @@ -335,6 +340,17 @@ #include <event.h> #include <glib.h> + +#ifdef GLIB_RE_COMPAT +#include "gregex.h" +#endif +#ifdef GLIB_UNISCRIPT_COMPAT +#include "guniscript.h" +#endif +#ifdef GLIB_COMPAT +#include "gchecksum.h" +#endif + #ifndef BUILD_STATIC #include <gmodule.h> #endif |