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:
Yaakov Selkowitz
2017-09-26 20:36:35 -05:00
committed by Yaakov Selkowitz
parent 0b45b053e8
commit 747f31854a
2 changed files with 3 additions and 3 deletions

View File

@@ -228,7 +228,7 @@ void endnetent (void);
void endprotoent (void);
void endservent (void);
void endrpcent (void);
struct hostent *gethostbyaddr (const char *, int, int);
struct hostent *gethostbyaddr (const void *, socklen_t, int);
struct hostent *gethostbyname (const char *);
#if __MISC_VISIBLE
struct hostent *gethostbyname2 (const char *, int);