aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/sockaddrcom.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/sockaddrcom.h')
-rw-r--r--sysdeps/generic/sockaddrcom.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/generic/sockaddrcom.h b/sysdeps/generic/sockaddrcom.h
index a4e7698..8b1de11 100644
--- a/sysdeps/generic/sockaddrcom.h
+++ b/sysdeps/generic/sockaddrcom.h
@@ -1,5 +1,5 @@
/* Definition of `struct sockaddr_*' common members. Generic/4.2 BSD version.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,12 +21,15 @@
#define _SOCKADDRCOM_H 1
+/* POSIX.1g specifies this type name for the `sa_family' member. */
+typedef unsigned short int sa_family_t;
+
/* This macro is used to declare the initial common members
of the data types used for socket addresses, `struct sockaddr',
`struct sockaddr_in', `struct sockaddr_un', etc. */
#define __SOCKADDR_COMMON(sa_prefix) \
- unsigned short int sa_prefix##family
+ sa_family_t sa_prefix##family
#define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int))