[Goodies-commits] r3902 - xfce4-mailwatch-plugin/trunk/libmailwatch-core

Brian Tarricone kelnos at xfce.org
Thu Jan 31 12:40:27 CET 2008


Author: kelnos
Date: 2008-01-31 11:40:27 +0000 (Thu, 31 Jan 2008)
New Revision: 3902

Modified:
   xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-gmail.c
   xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c
   xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-pop3.c
Log:
fix connection failures on NetBSD

apparently you're only allowed to set the first four fields of the addrinfo
struct you pass as 'hints' to getaddrinfo().  glibc seems to be lenient about
this; other libc implementations are not.  patch from NetBSD guys (bug 3767)


Modified: xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-gmail.c
===================================================================
--- xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-gmail.c	2008-01-31 11:40:13 UTC (rev 3901)
+++ xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-gmail.c	2008-01-31 11:40:27 UTC (rev 3902)
@@ -160,7 +160,7 @@
                   const gchar *service, struct sockaddr_in *addr)
 {
     struct addrinfo hints = { 0, PF_INET, SOCK_STREAM, IPPROTO_TCP,
-            sizeof(struct sockaddr_in), NULL, NULL, NULL };
+            0, NULL, NULL, NULL };
     GError *error = NULL;
     
     TRACE("entering (%s, %s, %p)", host, service, addr);

Modified: xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c
===================================================================
--- xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c	2008-01-31 11:40:13 UTC (rev 3901)
+++ xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c	2008-01-31 11:40:27 UTC (rev 3902)
@@ -209,7 +209,7 @@
                   const gchar *service, struct sockaddr_in *addr)
 {
     struct addrinfo hints = { 0, PF_INET, SOCK_STREAM, IPPROTO_TCP,
-            sizeof(struct sockaddr_in), NULL, NULL, NULL };
+            0, NULL, NULL, NULL };
     GError *error = NULL;
         
     TRACE("entering (%s, %s, %p)", host, service, addr);

Modified: xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-pop3.c
===================================================================
--- xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-pop3.c	2008-01-31 11:40:13 UTC (rev 3901)
+++ xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-pop3.c	2008-01-31 11:40:27 UTC (rev 3902)
@@ -177,7 +177,7 @@
                   const gchar *service, struct sockaddr_in *addr)
 {
     struct addrinfo hints = { 0, PF_INET, SOCK_STREAM, IPPROTO_TCP,
-            sizeof(struct sockaddr_in), NULL, NULL, NULL };
+            0, NULL, NULL, NULL };
     GError *error = NULL;
     
     TRACE("entering (%s, %s, %p)", host, service, addr);




More information about the Goodies-commits mailing list