Do you like rsync 2.5.5?

Albert Chin rsync at lists.thewrittenword.com
Wed Apr 3 14:48:00 EST 2002


On Wed, Apr 03, 2002 at 10:14:50AM +1000, Martin Pool wrote:
>   Are there any other patches you think really need to go into a 2.5.6
>   before we proceed?

The attached patch is important for "out of the box" compilation on
Tru64 UNIX. The FreeBSD issue has been resolved.

-- 
albert chin (china at thewrittenword.com)

-- snip snip
--- configure.in.orig	Tue Apr  2 17:18:51 2002
+++ configure.in	Tue Apr  2 17:19:41 2002
@@ -326,7 +326,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_CHECK_FUNCS(getaddrinfo, ,
+	[AC_MSG_CHECKING([for getaddrinfo by including <netdb.h>])
+	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], 




More information about the rsync mailing list