diff options
Diffstat (limited to 'fake-socket.h')
-rw-r--r-- | fake-socket.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fake-socket.h b/fake-socket.h index e11ad44e0..0e1624d11 100644 --- a/fake-socket.h +++ b/fake-socket.h | |||
@@ -5,10 +5,10 @@ | |||
5 | #include "sys/types.h" | 5 | #include "sys/types.h" |
6 | 6 | ||
7 | #ifndef HAVE_STRUCT_SOCKADDR_STORAGE | 7 | #ifndef HAVE_STRUCT_SOCKADDR_STORAGE |
8 | #define _SS_MAXSIZE 128 /* Implementation specific max size */ | 8 | # define _SS_MAXSIZE 128 /* Implementation specific max size */ |
9 | #define _SS_ALIGNSIZE (sizeof(int)) | 9 | # define _SS_ALIGNSIZE (sizeof(int)) |
10 | #define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_short)) | 10 | # define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_short)) |
11 | #define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof(u_short) + \ | 11 | # define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof(u_short) + \ |
12 | _SS_PAD1SIZE + _SS_ALIGNSIZE)) | 12 | _SS_PAD1SIZE + _SS_ALIGNSIZE)) |
13 | 13 | ||
14 | struct sockaddr_storage { | 14 | struct sockaddr_storage { |
@@ -20,7 +20,7 @@ struct sockaddr_storage { | |||
20 | #endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */ | 20 | #endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */ |
21 | 21 | ||
22 | #ifndef IN6_IS_ADDR_LOOPBACK | 22 | #ifndef IN6_IS_ADDR_LOOPBACK |
23 | #define IN6_IS_ADDR_LOOPBACK(a) \ | 23 | # define IN6_IS_ADDR_LOOPBACK(a) \ |
24 | (((u_int32_t *) (a))[0] == 0 && ((u_int32_t *) (a))[1] == 0 && \ | 24 | (((u_int32_t *) (a))[0] == 0 && ((u_int32_t *) (a))[1] == 0 && \ |
25 | ((u_int32_t *) (a))[2] == 0 && ((u_int32_t *) (a))[3] == htonl (1)) | 25 | ((u_int32_t *) (a))[2] == 0 && ((u_int32_t *) (a))[3] == htonl (1)) |
26 | #endif /* !IN6_IS_ADDR_LOOPBACK */ | 26 | #endif /* !IN6_IS_ADDR_LOOPBACK */ |