aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 @@
4 * 4 *
5 * Heavily modified by Manuel Novoa III Mar 12, 2001 5 * Heavily modified by Manuel Novoa III Mar 12, 2001
6 * 6 *
7 * Version: $Id: inet_common.c,v 1.1 2001/11/10 12:18:42 andersen Exp $ 7 * Version: $Id: inet_common.c,v 1.2 2002/06/06 12:11:55 andersen Exp $
8 * 8 *
9 */ 9 */
10 10
@@ -16,6 +16,11 @@
16#include <unistd.h> 16#include <unistd.h>
17#include "libbb.h" 17#include "libbb.h"
18 18
19#ifdef DEBUG
20#include <resolv.h>
21#endif
22
23
19const char bb_INET_default[]="default"; 24const char bb_INET_default[]="default";
20 25
21int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) 26int 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,
103 /* Grmpf. -FvK */ 108 /* Grmpf. -FvK */
104 if (s_in->sin_family != AF_INET) { 109 if (s_in->sin_family != AF_INET) {
105#ifdef DEBUG 110#ifdef DEBUG
106 fprintf(stderr, _("rresolve: unsupport address family %d !\n"), s_in->sin_family); 111 fprintf(stderr, "rresolve: unsupport address family %d !\n", s_in->sin_family);
107#endif 112#endif
108 errno = EAFNOSUPPORT; 113 errno = EAFNOSUPPORT;
109 return (-1); 114 return (-1);