308
|
1 |
--- gnome-commander-1.2.4/src/utils.cc.orig 2007-06-12 11:33:38.649097000 +0100
|
|
2 |
+++ gnome-commander-1.2.4/src/utils.cc 2007-06-12 11:34:28.691277289 +0100
|
|
3 |
@@ -1283,7 +1283,12 @@
|
|
4 |
gboolean patlist_matches (GList *pattern_list, const gchar *s)
|
|
5 |
{
|
|
6 |
for (GList *tmp = pattern_list; tmp; tmp = tmp->next)
|
|
7 |
+#ifdef _GNUC
|
|
8 |
if (fnmatch ((gchar *) tmp->data, s, FNM_NOESCAPE|FNM_CASEFOLD) == 0)
|
|
9 |
+#else
|
|
10 |
+ // Omit FNM_CASEFOLD as it is a GNU extension.
|
|
11 |
+ if (fnmatch ((gchar *) tmp->data, s, FNM_NOESCAPE) == 0)
|
|
12 |
+#endif
|
|
13 |
return TRUE;
|
|
14 |
|
|
15 |
return FALSE;
|
|
16 |
--- gnome-commander-1.2.4/src/gnome-cmd-file-popmenu.cc.orig 2007-06-12 11:29:14.440296820 +0100
|
|
17 |
+++ gnome-commander-1.2.4/src/gnome-cmd-file-popmenu.cc 2007-06-12 11:32:06.691964917 +0100
|
|
18 |
@@ -283,7 +283,12 @@
|
|
19 |
for (; files; files = files->next)
|
|
20 |
{
|
|
21 |
gboolean ok = FALSE;
|
|
22 |
+#ifdef _GNUC
|
|
23 |
gint fn_flags = FNM_NOESCAPE | FNM_CASEFOLD;
|
|
24 |
+#else
|
|
25 |
+ // Omit FNM_CASEFOLD as it is a GNU extension.
|
|
26 |
+ gint fn_flags = FNM_NOESCAPE;
|
|
27 |
+#endif
|
|
28 |
|
|
29 |
GnomeCmdFile *finfo = (GnomeCmdFile *) files->data;
|
|
30 |
if (finfo->info->type != GNOME_VFS_FILE_TYPE_REGULAR)
|
|
31 |
--- gnome-commander-1.2.4/plugins/test/test-plugin.c.orig 2007-06-12 11:43:07.654477136 +0100
|
|
32 |
+++ gnome-commander-1.2.4/plugins/test/test-plugin.c 2007-06-12 11:44:06.081892357 +0100
|
|
33 |
@@ -43,6 +43,9 @@
|
|
34 |
|
|
35 |
struct _TestPluginPrivate
|
|
36 |
{
|
|
37 |
+#ifdef __sun
|
|
38 |
+ char x; /* Sun's forte compiler does not line empty structs. */
|
|
39 |
+#endif
|
|
40 |
};
|
|
41 |
|
|
42 |
static GnomeCmdPluginClass *parent_class = NULL;
|