cygwin: fix gethostbyaddr argument types
The first argument of gethostbyaddr needs to accept a generic pointer to be compatible with e.g. struct in_addr *. This caused an issue compiling krb5-1.15. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
committed by
Yaakov Selkowitz
parent
0b45b053e8
commit
747f31854a
@@ -1152,13 +1152,13 @@ cygwin_gethostbyname (const char *name)
|
||||
|
||||
/* exported as gethostbyaddr: standards? */
|
||||
extern "C" struct hostent *
|
||||
cygwin_gethostbyaddr (const char *addr, int len, int type)
|
||||
cygwin_gethostbyaddr (const void *addr, socklen_t len, int type)
|
||||
{
|
||||
hostent *res = NULL;
|
||||
|
||||
__try
|
||||
{
|
||||
res = dup_ent (gethostbyaddr (addr, len, type));
|
||||
res = dup_ent (gethostbyaddr ((const char *) addr, len, type));
|
||||
if (res)
|
||||
debug_printf ("h_name %s", res->h_name);
|
||||
else
|
||||
|
Reference in New Issue
Block a user