projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
402847c
)
Fix ginetaddress.c compile on Linux
author
David King
<davidk@openismus.com>
Wed, 29 Apr 2009 13:58:35 +0000
(15:58 +0200)
committer
Dan Winship
<danw@gnome.org>
Wed, 29 Apr 2009 18:23:17 +0000
(14:23 -0400)
The GType type definition belongs outside the G_OS_WIN32 typedef.
gio/ginetaddress.c
patch
|
blob
|
history
diff --git
a/gio/ginetaddress.c
b/gio/ginetaddress.c
index
592f76c
..
65accd4
100644
(file)
--- 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;