From dce008dac9e1172bb4b955ae91cf29b2e8429dd2 Mon Sep 17 00:00:00 2001 From: ume Date: Sun, 21 May 2006 11:27:28 +0000 Subject: Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bit arch. X-MFC after: never --- include/netdb.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include/netdb.h') diff --git a/include/netdb.h b/include/netdb.h index 33a5051..cd7fc74 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -63,7 +63,6 @@ #include #include -#include #ifndef _SIZE_T_DECLARED typedef __size_t size_t; @@ -222,15 +221,9 @@ void endnetgrent(void); void endprotoent(void); void endservent(void); void freehostent(struct hostent *); -#if __LONG_BIT == 64 -struct hostent *gethostbyaddr(const void *, int, int); -int gethostbyaddr_r(const void *, int, int, struct hostent *, - char *, size_t, struct hostent **, int *); -#else struct hostent *gethostbyaddr(const void *, socklen_t, int); int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *, char *, size_t, struct hostent **, int *); -#endif struct hostent *gethostbyname(const char *); int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); -- cgit v1.1