- /* Define if you have the <sys/stat.h> header file. */
- #undef HAVE_SYS_STAT_H
-diff -u -r rsync-2.5.4/configure rsync-2.5.4.new/configure
---- rsync-2.5.4/configure Wed Mar 13 11:03:50 2002
-+++ rsync-2.5.4.new/configure Fri Mar 22 09:24:01 2002
-@@ -3414,7 +3414,7 @@
- fi
- done
-
--for ac_header in sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h
-+for ac_header in sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h sys/un.h
- do
- as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
- echo "$as_me:3420: checking for $ac_header" >&5
-@@ -6165,7 +6165,7 @@
- fi
- rm -f conftest.data
-
--for ac_func in waitpid wait4 getcwd strdup strerror chown chmod mknod
-+for ac_func in waitpid wait4 getcwd strdup strerror chown chmod mknod mkfifo
- do
- as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
- echo "$as_me:6171: checking for $ac_func" >&5
-diff -u -r rsync-2.5.4/configure.in rsync-2.5.4.new/configure.in
---- rsync-2.5.4/configure.in Wed Mar 13 11:03:34 2002
-+++ rsync-2.5.4.new/configure.in Fri Mar 22 09:24:01 2002
-@@ -242,7 +242,7 @@
- AC_HEADER_SYS_WAIT
- AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h unistd.h utime.h grp.h)
- AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h)
--AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h)
-+AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h sys/un.h)
- AC_CHECK_HEADERS(glob.h alloca.h mcheck.h sys/sysctl.h arpa/inet.h arpa/nameser.h)
- AC_CHECK_HEADERS(netdb.h)
- AC_CHECK_HEADERS(malloc.h)
-@@ -315,7 +315,19 @@
- AC_CHECK_FUNCS(inet_ntop, , AC_LIBOBJ(lib/inet_ntop))
- AC_CHECK_FUNCS(inet_pton, , AC_LIBOBJ(lib/inet_pton))
-
--AC_CHECK_FUNCS(getaddrinfo, , AC_LIBOBJ(lib/getaddrinfo))
-+# Tru64 UNIX has getaddrinfo() but has it renamed in libc as
-+# something else so we must include <netdb.h> to get the
-+# redefinition.
-+AC_MSG_CHECKING([for getaddrinfo])
-+AC_TRY_LINK([#include <sys/types.h>
-+#include <sys/socket.h>
-+#include <netdb.h>],[getaddrinfo(NULL, NULL, NULL, NULL);],
-+ [AC_MSG_RESULT([yes])
-+ AC_DEFINE(HAVE_GETADDRINFO, 1,
-+ [Define if you have the `getaddrinfo' function.])],
-+ [AC_MSG_RESULT([no])
-+ AC_LIBOBJ(lib/getaddrinfo)])
-+
- AC_CHECK_FUNCS(getnameinfo, , AC_LIBOBJ(lib/getnameinfo))
-
- AC_CHECK_MEMBER([struct sockaddr.sa_len],
-@@ -348,7 +360,7 @@
- dnl AC_FUNC_MEMCMP
-
- AC_FUNC_UTIME_NULL
--AC_CHECK_FUNCS(waitpid wait4 getcwd strdup strerror chown chmod mknod)
-+AC_CHECK_FUNCS(waitpid wait4 getcwd strdup strerror chown chmod mknod mkfifo)
- AC_CHECK_FUNCS(fchmod fstat strchr readlink link utime utimes strftime)
- AC_CHECK_FUNCS(memmove lchown vsnprintf snprintf asprintf setsid glob strpbrk)
- AC_CHECK_FUNCS(strlcat strlcpy mtrace mallinfo setgroups)
-diff -u -r rsync-2.5.4/lib/getaddrinfo.c rsync-2.5.4.new/lib/getaddrinfo.c
---- rsync-2.5.4/lib/getaddrinfo.c Fri Dec 14 16:33:12 2001
-+++ rsync-2.5.4.new/lib/getaddrinfo.c Fri Mar 22 09:24:10 2002
-@@ -41,6 +41,20 @@
-
- #include <rsync.h>
-
-+/****** Start Zoong added here */
-+
-+#define EAI_BADHINTS 12
-+#define EAI_PROTOCOL 13
-+#define EAI_MAX 14
-+
-+#define AI_PASSIVE 0x00000001 /* get address to use bind() */
-+#define AI_CANONNAME 0x00000002 /* fill ai_canonname */
-+#define AI_NUMERICHOST 0x00000004 /* prevent name resolution */
-+#define AI_MASK (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST)
-+
-+/****** End Zoong added here */
-+
-+
- #if defined(__KAME__) && defined(INET6)
- # define FAITH
- #endif
-diff -u -r rsync-2.5.4/rsync.h rsync-2.5.4.new/rsync.h
---- rsync-2.5.4/rsync.h Sat Feb 23 11:17:50 2002
-+++ rsync-2.5.4.new/rsync.h Fri Mar 22 09:24:01 2002
-@@ -109,6 +109,11 @@
- #include <sys/socket.h>
- #endif
-
-+#ifdef HAVE_SYS_UN_H