Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-12-31 16:07:43 +0300
committerCorinna Vinschen <corinna@vinschen.de>2005-12-31 16:07:43 +0300
commit1b68dd91cf5a3a2642f2bdb09065dc59a884028b (patch)
tree5075294e9cb6fb92bc2b765d2be86b9d9a223178 /winsup/cygwin/include/sys
parentcf2af34b70169362213576b7e02056eefec3b76b (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r--winsup/cygwin/include/sys/un.h6
1 files changed, 4 insertions, 2 deletions
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 <cygwin/socket.h>
+
/* 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 */
};