diff options
| author | Eric Andersen <andersen@codepoet.org> | 2002-06-06 12:11:55 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 2002-06-06 12:11:55 +0000 |
| commit | 77d22c4abda04ee2e54b3f189ff41b493fb4f54e (patch) | |
| tree | a96abcd951df778d64e486c1ff2566ac9d79b131 /libbb | |
| parent | 1a92376f00778fa576390d0a0f3dc0bdd9c289dc (diff) | |
| download | busybox-w32-77d22c4abda04ee2e54b3f189ff41b493fb4f54e.tar.gz busybox-w32-77d22c4abda04ee2e54b3f189ff41b493fb4f54e.tar.bz2 busybox-w32-77d22c4abda04ee2e54b3f189ff41b493fb4f54e.zip | |
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
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/inet_common.c | 9 |
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 | |||
| 19 | const char bb_INET_default[]="default"; | 24 | const char bb_INET_default[]="default"; |
| 20 | 25 | ||
| 21 | int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) | 26 | 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, | |||
| 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); |
