diff options
Diffstat (limited to 'openbsd-compat/fake-socket.h')
-rw-r--r-- | openbsd-compat/fake-socket.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/openbsd-compat/fake-socket.h b/openbsd-compat/fake-socket.h deleted file mode 100644 index 1e0d245e0..000000000 --- a/openbsd-compat/fake-socket.h +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | /* $Id: fake-socket.h,v 1.4 2003/06/04 23:56:35 djm Exp $ */ | ||
2 | |||
3 | #ifndef _FAKE_SOCKET_H | ||
4 | #define _FAKE_SOCKET_H | ||
5 | |||
6 | #include "includes.h" | ||
7 | #include "sys/types.h" | ||
8 | |||
9 | #ifndef HAVE_STRUCT_SOCKADDR_STORAGE | ||
10 | |||
11 | # define _SS_MAXSIZE 128 /* Implementation specific max size */ | ||
12 | # define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr)) | ||
13 | |||
14 | struct sockaddr_storage { | ||
15 | struct sockaddr ss_sa; | ||
16 | char __ss_pad2[_SS_PADSIZE]; | ||
17 | }; | ||
18 | # define ss_family ss_sa.sa_family | ||
19 | #endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */ | ||
20 | |||
21 | #ifndef IN6_IS_ADDR_LOOPBACK | ||
22 | # define IN6_IS_ADDR_LOOPBACK(a) \ | ||
23 | (((u_int32_t *)(a))[0] == 0 && ((u_int32_t *)(a))[1] == 0 && \ | ||
24 | ((u_int32_t *)(a))[2] == 0 && ((u_int32_t *)(a))[3] == htonl(1)) | ||
25 | #endif /* !IN6_IS_ADDR_LOOPBACK */ | ||
26 | |||
27 | #ifndef HAVE_STRUCT_IN6_ADDR | ||
28 | struct in6_addr { | ||
29 | u_int8_t s6_addr[16]; | ||
30 | }; | ||
31 | #endif /* !HAVE_STRUCT_IN6_ADDR */ | ||
32 | |||
33 | #ifndef HAVE_STRUCT_SOCKADDR_IN6 | ||
34 | struct sockaddr_in6 { | ||
35 | unsigned short sin6_family; | ||
36 | u_int16_t sin6_port; | ||
37 | u_int32_t sin6_flowinfo; | ||
38 | struct in6_addr sin6_addr; | ||
39 | }; | ||
40 | #endif /* !HAVE_STRUCT_SOCKADDR_IN6 */ | ||
41 | |||
42 | #ifndef AF_INET6 | ||
43 | /* Define it to something that should never appear */ | ||
44 | #define AF_INET6 AF_MAX | ||
45 | #endif | ||
46 | |||
47 | #endif /* !_FAKE_SOCKET_H */ | ||
48 | |||