[prev in list] [next in list] [prev in thread] [next in thread]
List: sylpheed
Subject: [sylpheed:23714] patches to sylpheed-1.0.0rc to work on cygwin
From: Bill Priest <priestwilliaml () yahoo ! com>
Date: 2004-12-18 21:45:48
Message-ID: 20041218214548.94408.qmail () web20828 ! mail ! yahoo ! com
[Download RAW message or body]
All,
I've built sylpheed on cygwin and only had to
tweak two files for features not present in cygwin.
It works well and I haven't had any crashes.
Regards,
Bill
Unified diffs follow:
Cygwin doesn't support munlock and mlock in
passphrase.c
Cygwin has a problem with GDK_ENTER/LEAVE _THREADS in
gtkstext.c
--- passphrase.c 2004-12-18 13:39:14.766726500
-0600
+++ passphrase.c.~1~ 2004-05-11 03:49:32.000000000
-0500
@@ -273,9 +273,7 @@
static int free_passphrase(gpointer _unused)
{
if (last_pass != NULL) {
-#ifndef __CYGWIN__
munlock(last_pass, strlen(last_pass));
-#endif
g_free(last_pass);
last_pass = NULL;
debug_print("%% passphrase removed");
@@ -310,10 +308,9 @@
else {
if (prefs_common.store_passphrase) {
last_pass = g_strdup(pass);
-#ifndef __CYGWIN__
if (mlock(last_pass, strlen(last_pass))
== -1)
debug_print("%% locking passphrase
failed");
-#endif
+
if (prefs_common.store_passphrase_timeout
> 0) {
gtk_timeout_add(prefs_common.store_passphrase_timeout*60*1000,
free_passphrase,
NULL);
--- gtkstext.c 2004-12-18 13:42:47.312352100 -0600
+++ gtkstext.c.~1~ 2004-06-16 01:41:32.000000000
-0500
@@ -1782,10 +1782,8 @@
GdkEventMotion event;
gint x, y;
GdkModifierType mask;
-
-#ifndef __CYGWIN__
+
GDK_THREADS_ENTER ();
-#endif
text = GTK_STEXT (data);
@@ -1802,9 +1800,7 @@
gtk_stext_motion_notify (GTK_WIDGET (text),
&event);
}
-#ifndef __CYGWIN__
GDK_THREADS_LEAVE ();
-#endif
return FALSE;
}
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic