From 34a495d4ecec6621ce7da215a7c07a6a5db05001 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 27 Feb 2004 20:21:58 +0000 Subject: The Perl module was broken in gaim since perl.h defined STATIC which broke the plug-in initialization. To fix this, check for a namespace friendly GAIM_STATIC_PRPL macro definition to decide if we need to build modules statically. Obtained from: GAIM CVS --- net/gaim/files/patch-src_plugin.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 net/gaim/files/patch-src_plugin.h (limited to 'net/gaim/files') diff --git a/net/gaim/files/patch-src_plugin.h b/net/gaim/files/patch-src_plugin.h new file mode 100644 index 0000000..520ce2b --- /dev/null +++ b/net/gaim/files/patch-src_plugin.h @@ -0,0 +1,20 @@ +--- src/plugin.h.orig Fri Feb 27 15:18:51 2004 ++++ src/plugin.h Fri Feb 27 15:19:15 2004 +@@ -117,7 +117,7 @@ + /** + * Handles the initialization of modules. + */ +-#if !defined(GAIM_PLUGINS) || defined(STATIC) ++#if !defined(GAIM_PLUGINS) || defined(GAIM_STATIC_PRPL) + # define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ + gboolean gaim_init_##pluginname##_plugin(void) { \ + GaimPlugin *plugin = gaim_plugin_new(TRUE, NULL); \ +@@ -125,7 +125,7 @@ + initfunc((plugin)); \ + return gaim_plugin_register(plugin); \ + } +-#else /* GAIM_PLUGINS && !STATIC */ ++#else /* GAIM_PLUGINS && !GAIM_STATIC_PRPL */ + # define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ + G_MODULE_EXPORT gboolean gaim_init_plugin(GaimPlugin *plugin) { \ + plugin->info = &(plugininfo); \ -- cgit v1.1