aboutsummaryrefslogtreecommitdiff
path: root/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-resolve.c
blob: c58be91fa94bd1f4a5f5e2f72d2f723691dab735 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- libgnomevfs/gnome-vfs-resolve.c.orig	Sat Jul 31 17:52:23 2004
+++ libgnomevfs/gnome-vfs-resolve.c	Sat Jul 31 17:52:45 2004
@@ -171,8 +171,10 @@
 	   switch (error) {
 			 
 	   case EAI_NONAME: return GNOME_VFS_ERROR_HOST_NOT_FOUND;
+#if defined(EAI_ADDRFAMILY) && defined(EAI_NODATA)
 	   case EAI_ADDRFAMILY:		
 	   case EAI_NODATA: return GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS;
+#endif
 	   case EAI_SYSTEM: return gnome_vfs_result_from_errno ();
 	   case EAI_FAIL:
 	   case EAI_AGAIN: return GNOME_VFS_ERROR_NAMESERVER;