Got rid of a superfluous extern.
[rsync/rsync-patches.git] / tru64.diff
CommitLineData
2c8f6e6e 1This is an adapted version of the original by Zoong Pham.
fbc35144 2
9a7eef96
WD
3--- old/lib/getaddrinfo.c
4+++ new/lib/getaddrinfo.c
13bed3dd
WD
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
9a7eef96
WD
26--- old/syscall.c
27+++ new/syscall.c
a60267ab
WD
28@@ -27,6 +27,7 @@
29 #include "rsync.h"
fbc35144 30
09fb8f03 31 #if !defined MKNOD_CREATES_SOCKETS && defined HAVE_SYS_UN_H
fbc35144 32+#define _SOCKADDR_LEN
9bb5ff6c 33 #include <sys/un.h>
2c8f6e6e 34 #endif
9bb5ff6c 35