aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-06-06 12:11:55 +0000
committerEric Andersen <andersen@codepoet.org>2002-06-06 12:11:55 +0000
commit77d22c4abda04ee2e54b3f189ff41b493fb4f54e (patch)
treea96abcd951df778d64e486c1ff2566ac9d79b131
parent1a92376f00778fa576390d0a0f3dc0bdd9c289dc (diff)
downloadbusybox-77d22c4abda04ee2e54b3f189ff41b493fb4f54e.tar.gz
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
-rw-r--r--libbb/inet_common.c9
1 files 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 <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);