diff options
Diffstat (limited to 'include/netdb.h')
-rw-r--r-- | include/netdb.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/netdb.h b/include/netdb.h index 8da2e8de8636..4fb0aa856471 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -62,16 +62,16 @@ #define _NETDB_H_ #include <sys/cdefs.h> -#include <machine/ansi.h> +#include <sys/_types.h> -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED #endif -#ifdef _BSD_SOCKLEN_T_ -typedef _BSD_SOCKLEN_T_ socklen_t; -#undef _BSD_SOCKLEN_T_ +#ifndef _SOCKLEN_T_DECLARED +typedef __socklen_t socklen_t; +#define _SOCKLEN_T_DECLARED #endif #ifndef _PATH_HEQUIV |