Patch from Gyepi SAM <gyepi@praxis-sw.com>:

When DEBUG is defined
    1. need to include resolv.h (for _resinit())
    2. remove _() call around string. It appears to be a remnant of i18n or some such notion
This commit is contained in:
Eric Andersen 2002-06-06 12:11:55 +00:00
parent 1a92376f00
commit 77d22c4abd

View File

@ -4,7 +4,7 @@
*
* Heavily modified by Manuel Novoa III Mar 12, 2001
*
* Version: $Id: inet_common.c,v 1.1 2001/11/10 12:18:42 andersen Exp $
* Version: $Id: inet_common.c,v 1.2 2002/06/06 12:11:55 andersen Exp $
*
*/
@ -16,6 +16,11 @@
#include <unistd.h>
#include "libbb.h"
#ifdef DEBUG
#include <resolv.h>
#endif
const char bb_INET_default[]="default";
int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
@ -103,7 +108,7 @@ int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in,
/* Grmpf. -FvK */
if (s_in->sin_family != AF_INET) {
#ifdef DEBUG
fprintf(stderr, _("rresolve: unsupport address family %d !\n"), s_in->sin_family);
fprintf(stderr, "rresolve: unsupport address family %d !\n", s_in->sin_family);
#endif
errno = EAFNOSUPPORT;
return (-1);