gsocket: fix win32 build
authorDan Winship <danw@gnome.org>
Sun, 4 Sep 2011 12:42:31 +0000 (08:42 -0400)
committerDan Winship <danw@gnome.org>
Sun, 4 Sep 2011 12:42:31 +0000 (08:42 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=658157

gio/gsocket.c

index 9d58c41..a03be77 100644 (file)
@@ -389,7 +389,8 @@ g_socket_details_from_fd (GSocket *socket)
          goto err;
        }
 #else
-      errsv = ENOTSUP;
+      /* This will translate to G_IO_ERROR_FAILED on either unix or windows */
+      errsv = -1;
       goto err;
 #endif
     }