snippets / claws-mail solaris compilation patch

Language: Diff - First posted by slubman on 2007-10-6 01:20 (1 year, 1 month)
Link to the snippet: http://www.friendsnippets.org/snippet/84/

Patch to claws mail to enable solaris compilation

 1 Seulement dans claws-mail-3.0.2.new/src : .deps
2
3 Seulement dans claws-mail-3.0.2.new/src : Makefile
4
5 Sous-répertoire : claws-mail-3.0.2/src/common et claws-mail-3.0.2.new/src/common
6
7 Sous-répertoire : claws-mail-3.0.2/src/etpan et claws-mail-3.0.2.new/src/etpan
8
9 diff -u claws-mail-3.0.2/src/exporthtml.c claws-mail-3.0.2.new/src/exporthtml.c
10
11 --- claws-mail-3.0.2/src/exporthtml.c mar. août 21 11:17:14 2007
12
13 +++ claws-mail-3.0.2.new/src/exporthtml.c sam. oct. 6 00:59:50 2007
14
15 @@ -982,7 +982,11 @@
16
17 exporthtml_fmt_folder( ctl, htmlFile, rootFolder );
18
19
20
21 tt = time( NULL );
22
23 +#ifdef SOLARIS
24
25 + fprintf( htmlFile, "<p>%s</p>\n", ctime_r( &tt, buf, sizeof(buf) ) );
26
27 +#else
28
29 fprintf( htmlFile, "<p>%s</p>\n", ctime_r( &tt, buf ) );
30
31 +#endif
32
33 fprintf( htmlFile, "<hr width=\"100%%\"></hr>\n" );
34
35
36
37 fprintf( htmlFile, "</body>\n" );
38
39 Sous-répertoire : claws-mail-3.0.2/src/gtk et claws-mail-3.0.2.new/src/gtk
40
41 diff -u claws-mail-3.0.2/src/mbox.c claws-mail-3.0.2.new/src/mbox.c
42
43 --- claws-mail-3.0.2/src/mbox.c dim. sept. 16 20:16:42 2007
44
45 +++ claws-mail-3.0.2.new/src/mbox.c sam. oct. 6 01:00:18 2007
46
47 @@ -570,8 +570,13 @@
48
49 sizeof(buf));
50
51 extract_address(buf);
52
53
54
55 +#ifdef SOLARIS
56
57 fprintf(mbox_fp, "From %s %s",
58
59 + buf, ctime_r(&msginfo->date_t, buft, sizeof(buft)));
60
61 +#else
62
63 + fprintf(mbox_fp, "From %s %s",
64
65 buf, ctime_r(&msginfo->date_t, buft));
66
67 +#endif
68
69
70
71 buf[0] = '\0';
72
73
74
75 Sous-répertoire : claws-mail-3.0.2/src/pixmaps et claws-mail-3.0.2.new/src/pixmaps
76
77 Sous-répertoire : claws-mail-3.0.2/src/plugins et claws-mail-3.0.2.new/src/plugins
In order to post a comment, you should have a friendsnippet account. Please sign-in.

0 comments

Oct '07
  • Patch to claws mail to enable solaris compilation

Common Tags



snippet History

Oct '07