diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2002-08-16 16:34:26 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2002-08-16 16:34:26 +0000 |
| commit | 2cd998a25d6a3b40d37216991744d89fade7053d (patch) | |
| tree | ff54d4601b89a5a75f1650869bd114034b64d029 /include/arpa | |
| parent | b35e69503a46790139712a96887b9f941e8c95dc (diff) | |
Notes
Diffstat (limited to 'include/arpa')
| -rw-r--r-- | include/arpa/inet.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h index ecfcb4922062..13be8713c548 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -77,30 +77,30 @@ typedef __uint32_t uint32_t; #define _UINT32_T_DECLARED #endif -#ifndef _IN_ADDR_T_DECLARED +#ifndef _IN_ADDR_T_DECLARED typedef uint32_t in_addr_t; #define _IN_ADDR_T_DECLARED #endif -#ifndef _IN_PORT_T_DECLARED +#ifndef _IN_PORT_T_DECLARED typedef uint16_t in_port_t; #define _IN_PORT_T_DECLARED #endif -#ifndef _POSIX_SOURCE -#ifdef _BSD_SIZE_T_ +#if __BSD_VISIBLE +#ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ +#undef _BSD_SIZE_T_ +#endif #endif -#endif /* !_POSIX_SOURCE */ /* * XXX socklen_t is used by a POSIX.1-2001 interface, but not required by * POSIX.1-2001. */ -#ifdef _BSD_SOCKLEN_T_ +#ifdef _BSD_SOCKLEN_T_ typedef _BSD_SOCKLEN_T_ socklen_t; -#undef _BSD_SOCKLEN_T_ +#undef _BSD_SOCKLEN_T_ #endif #ifndef _STRUCT_IN_ADDR_DECLARED @@ -139,9 +139,9 @@ uint16_t ntohs(uint16_t); in_addr_t inet_addr(const char *); char *inet_ntoa(struct in_addr); -const char *inet_ntop(int, const void *__restrict, char *__restrict, - socklen_t); -int inet_pton(int, const char *__restrict, void *__restrict); +const char *inet_ntop(int, const void * __restrict, char * __restrict, + socklen_t); +int inet_pton(int, const char * __restrict, void * __restrict); #if __BSD_VISIBLE int ascii2addr(int, const char *, void *); |
