summaryrefslogtreecommitdiff
path: root/chat/gg2/patches/patch-ab
blob: 7806aa2a8264cfb0934cce57cdb592fb491aa24e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ab,v 1.2 2005/01/14 08:57:50 adam Exp $

--- src/main.c.orig	2004-12-26 22:47:53.000000000 +0000
+++ src/main.c
@@ -43,6 +43,12 @@
 #include "ggadu_repo.h"
 #include "perl_embed.h"
 
+#ifdef __Darwin__
+#define DYLIB_SUFX ".dylib"
+#else
+#define DYLIB_SUFX ".so"
+#endif
+
 GGaduConfig *config;
 
 gboolean gnu_gadu_init(gpointer data);
@@ -80,7 +86,7 @@ void load_available_modules()
     {
 	gchar *fullfilename = g_build_filename(dirpath, namepl, NULL);
 
-	if ((!g_file_test(fullfilename, G_FILE_TEST_IS_DIR)) && (g_str_has_suffix(namepl, ".so")))
+	if ((!g_file_test(fullfilename, G_FILE_TEST_IS_DIR)) && (g_str_has_suffix(namepl, DYLIB_SUFX)))
 	{
 	    print_debug("core : load_avilable_modules : %s\n", namepl);