[glib] Fix ginetaddress.c compile on Linux
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Subject: [glib] Fix ginetaddress.c compile on Linux
- Date: Wed, 29 Apr 2009 14:26:26 -0400 (EDT)
commit 97fe421518139dcb3477209d3d3c3b6744f54153
Author: David King <davidk openismus com>
Date: Wed Apr 29 15:58:35 2009 +0200
Fix ginetaddress.c compile on Linux
The GType type definition belongs outside the G_OS_WIN32 typedef.
---
gio/ginetaddress.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gio/ginetaddress.c b/gio/ginetaddress.c
index 592f76c..65accd4 100644
--- a/gio/ginetaddress.c
+++ b/gio/ginetaddress.c
@@ -307,11 +307,11 @@ g_inet_address_init (GInetAddress *address)
GInetAddress *
g_inet_address_new_from_string (const gchar *string)
{
+ volatile GType type;
#ifdef G_OS_WIN32
struct sockaddr_storage sa;
struct sockaddr_in *sin = (struct sockaddr_in *)&sa;
struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa;
- volatile GType type;
gint len;
#else /* !G_OS_WIN32 */
struct in_addr in_addr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]