]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Some configure tweaks for TANDEM.
authorWayne Davison <wayne@opencoder.net>
Mon, 6 Jul 2020 02:08:44 +0000 (19:08 -0700)
committerWayne Davison <wayne@opencoder.net>
Mon, 6 Jul 2020 02:08:44 +0000 (19:08 -0700)
configure.ac
rsync.h

index 112367cb6cfe6c32c157d8a2d6606e1e33b64fff..24a0710116aa0f82adaec185bab9f119e2939b08 100644 (file)
@@ -346,7 +346,7 @@ AC_ARG_ENABLE(ipv6,
        AS_HELP_STRING([--disable-ipv6],[turn off IPv6 support]))
 if test x"$enable_ipv6" != x"no"; then
        AC_MSG_CHECKING([ipv6 stack type])
-       for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta cygwin; do
+       for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta cygwin TANDEM; do
                case $i in
                inria)
                        # http://www.kame.net/
@@ -438,6 +438,15 @@ yes
 #include <netinet/in.h>
 #ifdef _CYGWIN_IN6_H
 yes
+#endif],
+                               [ipv6type=$i;
+                               AC_DEFINE(INET6, 1, [true if you have IPv6])])
+                       ;;
+               TANDEM)
+                       AC_EGREP_CPP(yes, [
+#include <netinet/ip6.h>
+#ifdef __TANDEM
+yes
 #endif],
                                [ipv6type=$i;
                                AC_DEFINE(INET6, 1, [true if you have IPv6])])
@@ -481,7 +490,7 @@ AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \
     netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h \
     sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h \
     popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netinet/ip.h \
-    zlib.h xxhash.h openssl/md4.h openssl/md5.h zstd.h lz4.h)
+    zlib.h xxhash.h openssl/md4.h openssl/md5.h zstd.h lz4.h sys/file.h)
 AC_HEADER_MAJOR_FIXED
 
 AC_MSG_CHECKING([whether to enable use of openssl crypto library])
diff --git a/rsync.h b/rsync.h
index 1d6b81792f092c7a3c842d654d6d3ef789dc4c53..5983c906d452d7c7a3916e9023ca73838a25a3fc 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -442,7 +442,9 @@ enum delret {
 #include <netdb.h>
 #endif
 #include <syslog.h>
+#ifdef HAVE_SYS_FILE_H
 #include <sys/file.h>
+#endif
 
 #ifdef HAVE_DIRENT_H
 # include <dirent.h>