From 77d22c4abda04ee2e54b3f189ff41b493fb4f54e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 6 Jun 2002 12:11:55 +0000 Subject: Patch from Gyepi SAM : 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 --- libbb/inet_common.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libbb/inet_common.c b/libbb/inet_common.c index 0261d438a..c1e5953fe 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c @@ -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 #include "libbb.h" +#ifdef DEBUG +#include +#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); -- cgit v1.2.3