Commit | Line | Data |
---|---|---|
2c8f6e6e | 1 | This is an adapted version of the original by Zoong Pham. |
fbc35144 | 2 | |
13bed3dd WD |
3 | --- orig/lib/getaddrinfo.c 2004-03-16 01:26:36 |
4 | +++ lib/getaddrinfo.c 2004-06-18 17:38:35 | |
5 | @@ -41,6 +41,20 @@ | |
6 | ||
7 | #include <rsync.h> | |
8 | ||
9 | +/****** Start Zoong added here */ | |
10 | + | |
11 | +#define EAI_BADHINTS 12 | |
12 | +#define EAI_PROTOCOL 13 | |
13 | +#define EAI_MAX 14 | |
14 | + | |
15 | +#define AI_PASSIVE 0x00000001 /* get address to use bind() */ | |
16 | +#define AI_CANONNAME 0x00000002 /* fill ai_canonname */ | |
17 | +#define AI_NUMERICHOST 0x00000004 /* prevent name resolution */ | |
18 | +#define AI_MASK (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST) | |
19 | + | |
20 | +/****** End Zoong added here */ | |
21 | + | |
22 | + | |
23 | #if defined(__KAME__) && defined(INET6) | |
24 | # define FAITH | |
25 | #endif | |
35a9a417 WD |
26 | --- orig/syscall.c 2004-10-06 00:12:16 |
27 | +++ syscall.c 2004-10-06 00:17:22 | |
a60267ab WD |
28 | @@ -27,6 +27,7 @@ |
29 | #include "rsync.h" | |
fbc35144 | 30 | |
35a9a417 | 31 | #if !MKNOD_CREATES_SOCKETS && HAVE_SYS_UN_H |
fbc35144 | 32 | +#define _SOCKADDR_LEN |
9bb5ff6c | 33 | #include <sys/un.h> |
2c8f6e6e | 34 | #endif |
9bb5ff6c | 35 |