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:
parent
1a92376f00
commit
77d22c4abd
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* Heavily modified by Manuel Novoa III Mar 12, 2001
|
* 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 <unistd.h>
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
#include <resolv.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
const char bb_INET_default[]="default";
|
const char bb_INET_default[]="default";
|
||||||
|
|
||||||
int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
|
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 */
|
/* Grmpf. -FvK */
|
||||||
if (s_in->sin_family != AF_INET) {
|
if (s_in->sin_family != AF_INET) {
|
||||||
#ifdef DEBUG
|
#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
|
#endif
|
||||||
errno = EAFNOSUPPORT;
|
errno = EAFNOSUPPORT;
|
||||||
return (-1);
|
return (-1);
|
||||||
|
Loading…
Reference in New Issue
Block a user