Handle EAI_NODATA==EAI_NONAME in win32 SDK
authorHans Breuer <hans@breuer.org>
Sat, 30 May 2009 13:18:02 +0000 (15:18 +0200)
committerHans Breuer <hans@breuer.org>
Sat, 30 May 2009 13:18:02 +0000 (15:18 +0200)
gio/gresolver.c

index 2b4b746..e7a1754 100644 (file)
@@ -636,7 +636,9 @@ g_resolver_error_from_addrinfo_error (gint err)
   switch (err)
     {
     case EAI_FAIL:
+#ifndef G_OS_WIN32 /* defined as NONAME claiming it is removed from rfc2553bis  */
     case EAI_NODATA:
+#endif
     case EAI_NONAME:
       return G_RESOLVER_ERROR_NOT_FOUND;