aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2006-05-21 11:27:28 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2006-05-21 11:27:28 +0000
commit1bdf356bd3bdaffc0a7fe40838001a662d7d3e26 (patch)
tree233d98c434bf29bc5dcbe3cc56c393049660ce60 /include
parent734aa10414ca862b145afe3a9448e5c70ded101f (diff)
downloadsrc-1bdf356bd3bdaffc0a7fe40838001a662d7d3e26.tar.gz
src-1bdf356bd3bdaffc0a7fe40838001a662d7d3e26.zip
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bit
arch. X-MFC after: never
Notes
Notes: svn path=/head/; revision=158791
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 33a5051bcbd6..cd7fc7418279 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 *);