15548
|
1 |
diff -ur tracker-0.6.92-orig/src/tracker-indexer/modules/evolution.c tracker-0.6.92/src/tracker-indexer/modules/evolution.c
|
|
2 |
--- tracker-0.6.92-orig/src/tracker-indexer/modules/evolution.c 2009-03-30 15:27:15.463722000 +0800
|
|
3 |
+++ tracker-0.6.92/src/tracker-indexer/modules/evolution.c 2009-03-30 15:57:18.162104000 +0800
|
|
4 |
@@ -35,6 +35,9 @@
|
|
5 |
MAIL_STORAGE_IMAP,
|
|
6 |
};
|
|
7 |
|
|
8 |
+#ifdef __sun
|
|
9 |
+char *strcasestr (const char *, const char *);
|
|
10 |
+#endif
|
|
11 |
static gchar *local_dir = NULL;
|
|
12 |
static gchar *imap_dir = NULL;
|
|
13 |
|
|
14 |
@@ -109,3 +112,17 @@
|
|
15 |
|
|
16 |
return NULL;
|
|
17 |
}
|
|
18 |
+
|
|
19 |
+#ifdef __sun
|
|
20 |
+char *strcasestr (const char *a, const char *b)
|
|
21 |
+{
|
|
22 |
+ size_t l;
|
|
23 |
+ char f[3];
|
|
24 |
+
|
|
25 |
+ snprintf (f, sizeof(f), "%c%c", tolower(*b), toupper(*b));
|
|
26 |
+ for (l = strcspn(a, f); l != strlen(a); l += strcspn(a+l+1, f) + 1)
|
|
27 |
+ if (strncasecmp(a+l, b, strlen(b)) == 0)
|
|
28 |
+ return (a + l);
|
|
29 |
+ return NULL;
|
|
30 |
+}
|
|
31 |
+#endif
|