summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-04-20 02:24:35 +0000
committermike <mike@FreeBSD.org>2002-04-20 02:24:35 +0000
commit39f7a31d8080bfe4427a83cb28ee01fef0e3831a (patch)
treeff290f5b477579bbc70d4d5d5aacfc8bdb8fc7db /sys/netinet/in.h
parent693c02d4492513b7783441d267d5048346517507 (diff)
downloadFreeBSD-src-39f7a31d8080bfe4427a83cb28ee01fef0e3831a.zip
FreeBSD-src-39f7a31d8080bfe4427a83cb28ee01fef0e3831a.tar.gz
Add sa_family_t type to <sys/_types.h> and typedefs to <netinet/in.h>
and <sys/socket.h>. Previously, sa_family_t was only typedef'd in <sys/socket.h>.
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index d424128..e946c4e 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -256,6 +256,11 @@ typedef uint16_t in_port_t;
#define _IN_PORT_T_DECLARED
#endif
+#ifdef _BSD_SA_FAMILY_T_
+typedef _BSD_SA_FAMILY_T_ sa_family_t;
+#undef _BSD_SA_FAMILY_T_
+#endif
+
/*
* Internet address (a structure for historical reasons)
*/
OpenPOWER on IntegriCloud