loudmouth/lm-sock.c
changeset 342 ea543fec7afd
parent 308 7e2050a6df75
child 431 04577a6b7ff7
child 484 834033c54bb2
equal deleted inserted replaced
341:f44b206faf54 342:ea543fec7afd
   277 	case EAI_BADFLAGS: 
   277 	case EAI_BADFLAGS: 
   278 		return _("Internal error trying to obtain remote address");
   278 		return _("Internal error trying to obtain remote address");
   279 	case EAI_FAIL:     
   279 	case EAI_FAIL:     
   280 		return _("The nameserver encountered errors "
   280 		return _("The nameserver encountered errors "
   281 			 "looking up this address");
   281 			 "looking up this address");
       
   282 	/* EAI_NODATA is apparently missing on FreeBSD. On recent GNU libc,
       
   283 	 * it requires _GNU_SOURCE to be defined; in the unlikely case that
       
   284 	 * that GNU libc returns this value we'll return the default message */
       
   285 #ifdef EAI_NODATA
   282 	case EAI_NODATA:   
   286 	case EAI_NODATA:   
   283 		return _("The remote host exists but no address "
   287 		return _("The remote host exists but no address "
   284 			 "is available");
   288 			 "is available");
       
   289 #endif
   285 	case EAI_NONAME:   
   290 	case EAI_NONAME:   
   286 		return _("The remote address is unknown");
   291 		return _("The remote address is unknown");
   287 	case EAI_FAMILY:
   292 	case EAI_FAMILY:
   288 	case EAI_SERVICE:
   293 	case EAI_SERVICE:
   289 	case EAI_SOCKTYPE:
   294 	case EAI_SOCKTYPE: