Fixed 2 failing hunks.
[rsync/rsync-patches.git] / tru64.diff
CommitLineData
2c8f6e6e 1This is an adapted version of the original by Zoong Pham.
fbc35144 2
03019e41
WD
3To 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
9a7eef96
WD
9--- old/lib/getaddrinfo.c
10+++ new/lib/getaddrinfo.c
c8a8b4a7
WD
11@@ -42,6 +42,20 @@
12 #include "rsync.h"
13 #include "ifuncs.h"
13bed3dd
WD
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
9a7eef96
WD
32--- old/syscall.c
33+++ new/syscall.c
c8a8b4a7 34@@ -23,6 +23,7 @@
a60267ab 35 #include "rsync.h"
fbc35144 36
09fb8f03 37 #if !defined MKNOD_CREATES_SOCKETS && defined HAVE_SYS_UN_H
fbc35144 38+#define _SOCKADDR_LEN
9bb5ff6c 39 #include <sys/un.h>
2c8f6e6e 40 #endif
9bb5ff6c 41