commit - 0c15d4977fe6ab3349cf6eeda3fa97011af5c69c
commit + f0831174c3500cefc4f93d1da823b96a961d6c81
blob - e3a2400a081f0c28d3f0dbf0f62278dd8f9ad785
blob + 7d2c4c6adb212f2a58c1c78050997c704b3e9968
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: conn.c,v 1.61 2002/04/08 01:17:54 alex Exp $
+ * $Id: conn.c,v 1.62 2002/05/18 21:53:53 alex Exp $
*
* connect.h: Verwaltung aller Netz-Verbindungen ("connections")
*/
LOCAL VOID Do_ResolveAddr( struct sockaddr_in *Addr, INT w_fd );
LOCAL VOID Do_ResolveName( CHAR *Host, INT w_fd );
LOCAL VOID Read_Resolver_Result( INT r_fd );
+
+#ifdef h_errno
LOCAL CHAR *Resolv_Error( INT H_Error );
+#endif
LOCAL fd_set My_Listeners;
if( h ) strcpy( hostname, h->h_name );
else
{
- Log_Resolver( LOG_WARNING, "Can't resolve address %s: code %s!", inet_ntoa( Addr->sin_addr ), Resolv_Error( h_errno ));
+#ifdef h_errno
+ Log_Resolver( LOG_WARNING, "Can't resolve address \"%s\": %s!", inet_ntoa( Addr->sin_addr ), Resolv_Error( h_errno ));
+#else
+ Log_Resolver( LOG_WARNING, "Can't resolve address \"%s\"!", inet_ntoa( Addr->sin_addr ));
+#endif
strcpy( hostname, inet_ntoa( Addr->sin_addr ));
}
}
else
{
+#ifdef h_errno
Log_Resolver( LOG_WARNING, "Can't resolve \"%s\": %s!", Host, Resolv_Error( h_errno ));
+#else
+ Log_Resolver( LOG_WARNING, "Can't resolve \"%s\"!", Host );
+#endif
strcpy( ip, "" );
}
} /* Read_Resolver_Result */
+
+#ifdef h_errno
+
LOCAL CHAR *Resolv_Error( INT H_Error )
{
/* Fehlerbeschreibung fuer H_Error liefern */
}
} /* Resolv_Error */
+#endif
+
/* -eof- */