Fixed a failing hunk.
[rsync/rsync-patches.git] / tru64.diff
1 This is an adapted version of the original by Zoong Pham.
2
3 To use this patch, run these commands for a successful build:
4
5     patch -p1 <patches/tru64.diff
6     ./configure                          (optional if already run)
7     make
8
9 --- old/lib/getaddrinfo.c
10 +++ new/lib/getaddrinfo.c
11 @@ -41,6 +41,20 @@
12  
13  #include <rsync.h>
14  
15 +/****** Start Zoong added here */
16 +
17 +#define EAI_BADHINTS   12
18 +#define EAI_PROTOCOL   13
19 +#define EAI_MAX        14
20 +
21 +#define AI_PASSIVE     0x00000001 /* get address to use bind() */
22 +#define AI_CANONNAME   0x00000002 /* fill ai_canonname */
23 +#define AI_NUMERICHOST 0x00000004 /* prevent name resolution */
24 +#define AI_MASK        (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST)
25 +
26 +/****** End Zoong added here */
27 +
28 +
29  #if defined(__KAME__) && defined(INET6)
30  # define FAITH
31  #endif
32 --- old/syscall.c
33 +++ new/syscall.c
34 @@ -24,6 +24,7 @@
35  #include "rsync.h"
36  
37  #if !defined MKNOD_CREATES_SOCKETS && defined HAVE_SYS_UN_H
38 +#define _SOCKADDR_LEN
39  #include <sys/un.h>
40  #endif
41