diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-20 15:43:29 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-20 15:43:29 +0200 |
commit | 6a2bef6fb7f7f9a675d94230785cf644b2661644 (patch) | |
tree | 48c78bbd5629116c8e4de04193ed13bbb9604693 /src/plugins | |
parent | 1801e0da3b64b2f2870d5d5e9bd456869d792708 (diff) | |
download | weechat-6a2bef6fb7f7f9a675d94230785cf644b2661644.zip |
guile: fix compilation with Guile < 2.0.4 (closes #198)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/guile/weechat-guile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c index 155f88393..7d4304d9f 100644 --- a/src/plugins/guile/weechat-guile.c +++ b/src/plugins/guile/weechat-guile.c @@ -19,6 +19,10 @@ * along with WeeChat. If not, see <http://www.gnu.org/licenses/>. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #undef _ #include <libguile.h> @@ -971,12 +975,14 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) guile_stdout = NULL; +#ifdef HAVE_GUILE_GMP_MEMORY_FUNCTIONS /* * prevent guile to use its own gmp allocator, because it can conflict * with other plugins using GnuTLS like relay, which can crash WeeChat * on unload (or exit) */ scm_install_gmp_memory_functions = 0; +#endif scm_init_guile (); |