summaryrefslogtreecommitdiffstats
path: root/include/netdb.h
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-05-21 11:27:28 +0000
committerume <ume@FreeBSD.org>2006-05-21 11:27:28 +0000
commitdce008dac9e1172bb4b955ae91cf29b2e8429dd2 (patch)
tree233d98c434bf29bc5dcbe3cc56c393049660ce60 /include/netdb.h
parentc49929798600cc98625b30e672dfe77235791a07 (diff)
downloadFreeBSD-src-dce008dac9e1172bb4b955ae91cf29b2e8429dd2.zip
FreeBSD-src-dce008dac9e1172bb4b955ae91cf29b2e8429dd2.tar.gz
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bit
arch. X-MFC after: never
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h7
1 files changed, 0 insertions, 7 deletions
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 <sys/cdefs.h>
#include <sys/_types.h>
-#include <machine/_limits.h>
#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 *);
OpenPOWER on IntegriCloud