aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-service.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index a5618f012a..31f1243b56 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-01 Jeffrey Stedfast <fejj@novell.com>
+
+ * camel-service.c (camel_getaddrinfo): Avoid assigning a value to
+ the member of a const struct (which newer gcc's apparently break
+ over) by casting to non-const.
+
2004-09-28 Not Zed <NotZed@Ximian.com>
** See bug #66509.
diff --git a/camel/camel-service.c b/camel/camel-service.c
index 171bfe6061..3ec768efa7 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -897,7 +897,7 @@ camel_getaddrinfo(const char *name, const char *service, const struct addrinfo *
hints = &myhints;
}
- hints->ai_family = AF_INET;
+ ((struct addrinfo *) hints)->ai_family = AF_INET;
#endif
msg = g_malloc0(sizeof(*msg));