[gaim-migrate @ 13176]

Mon, 18 Jul 2005 13:49:49 +0000

author
John H. Kelm <johnkelm@gmail.com>
date
Mon, 18 Jul 2005 13:49:49 +0000
changeset 11120
beeb901ca8a9
parent 11119
8dd09e33fda9
child 11121
aae81a144afd

[gaim-migrate @ 13176]
The trick for getting the Perl plugin to load.

plugins/perl/libgaimperl.c file | annotate | diff | comparison | revisions
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/perl/libgaimperl.c	Mon Jul 18 13:49:49 2005 +0000
@@ -0,0 +1,6 @@
+void __attribute__ ((constructor)) my_init(void) {
+	/* Very evil hack...puts perl.so's symbols in the global table 		*/
+	/* but does not create a circular dependancy because g_module_open	*/
+	/* will only open the library once.					*/
+	g_module_open("perl.so", 0);
+}

mercurial