aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/socket.h')
-rw-r--r--sys/sys/socket.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
index 86f78dde3e38..9e054b47ae86 100644
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -37,7 +37,7 @@
#ifndef _SYS_SOCKET_H_
#define _SYS_SOCKET_H_
-#include <machine/ansi.h>
+#include <sys/_types.h>
#define _NO_NAMESPACE_POLLUTION
#include <machine/param.h>
#undef _NO_NAMESPACE_POLLUTION
@@ -49,7 +49,11 @@
/*
* Data types.
*/
-typedef u_char sa_family_t;
+#ifdef _BSD_SA_FAMILY_T_
+typedef _BSD_SA_FAMILY_T_ sa_family_t;
+#undef _BSD_SA_FAMILY_T_
+#endif
+
#ifdef _BSD_SOCKLEN_T_
typedef _BSD_SOCKLEN_T_ socklen_t;
#undef _BSD_SOCKLEN_T_