From 1b68dd91cf5a3a2642f2bdb09065dc59a884028b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 31 Dec 2005 13:07:43 +0000 Subject: * include/cygwin/in.h: Drop including stdint.h. Move definition of in_port_t and in_addr_t to top of file and use throughout. Use sa_family_t type where appropriate. (struct in6_addr): Change `unsigned char' to `uint8_t'. (struct sockaddr_in6): Add sin6_scope_id member. Add comments. * include/cygwin/socket.h: Include stdint.h. Move definition of socklen_t to top of file. Define sa_family_t. Define struct sockaddr_storage as per SUSv3. * include/sys/un.h: Include cygwin/socket.h. Use sa_family_t type. --- winsup/cygwin/include/sys/un.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/include/sys/un.h') diff --git a/winsup/cygwin/include/sys/un.h b/winsup/cygwin/include/sys/un.h index 4e3eee82b..2bd107d50 100644 --- a/winsup/cygwin/include/sys/un.h +++ b/winsup/cygwin/include/sys/un.h @@ -1,6 +1,6 @@ /* sys/un.h - Copyright 1999, 2001 Red Hat, Inc. + Copyright 1999, 2001, 2005 Red Hat, Inc. This file is part of Cygwin. @@ -11,11 +11,13 @@ details. */ #ifndef _SYS_UN_H #define _SYS_UN_H +#include + /* POSIX requires only at least 100 bytes */ #define UNIX_PATH_LEN 108 struct sockaddr_un { - unsigned short sun_family; /* address family AF_LOCAL/AF_UNIX */ + sa_family_t sun_family; /* address family AF_LOCAL/AF_UNIX */ char sun_path[UNIX_PATH_LEN]; /* 108 bytes of socket address */ }; -- cgit v1.2.3