1 | /** |
2 | * This file has no copyright assigned and is placed in the Public Domain. |
3 | * This file is part of the mingw-w64 runtime package. |
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
5 | */ |
6 | |
7 | #ifndef _AFUNIX_ |
8 | #define _AFUNIX_ |
9 | |
10 | #define UNIX_PATH_MAX 108 |
11 | |
12 | #if !defined(ADDRESS_FAMILY) |
13 | #define UNDEF_ADDRESS_FAMILY |
14 | #define ADDRESS_FAMILY unsigned short |
15 | #endif |
16 | |
17 | typedef struct sockaddr_un { |
18 | ADDRESS_FAMILY sun_family; |
19 | char sun_path[UNIX_PATH_MAX]; |
20 | } SOCKADDR_UN, *PSOCKADDR_UN; |
21 | |
22 | #if defined(UNDEF_ADDRESS_FAMILY) |
23 | #undef ADDRESS_FAMILY |
24 | #endif |
25 | |
26 | #endif /* _AFUNIX_ */ |