[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#183112: libc6-dev: Missing prototypes for "new" resolver funcs from <netdb.h>



Package: libc6-dev
Version: 2.3.1-9
Severity: important
Tags: patch


Missing prototypes for the following "new" resolver functions from <netdb.h>
However, they are documented in the corresponding man pages.

- getipnodebyname
- getipnodebyaddr
- freehostent

solved by including this in <netdb.h>:

----------

extern "C"
{

struct hostent *getipnodebyname(const char *name,
        int af, int flags, int *error_num);

struct hostent *getipnodebyaddr(const void *addr,
        size_t len, int af, int *error_num);

void freehostent(struct hostent *ip);

}

----------

Thanks.
	J.L.




-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux DarkCube 2.4.19-lvm1.0.5-reiserquota #1 Wed Oct 23 12:02:14 CEST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libc6-dev depends on:
ii  libc6                         2.3.1-9    GNU C Library: Shared libraries an




Reply to: