From: David Dykstra Date: Mon, 20 Jan 2003 23:09:24 +0000 (+0000) Subject: Make the default for --modify-window be 2 on cygwin. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/688d573295be34cd7c78487b02c7b5c092c75776 Make the default for --modify-window be 2 on cygwin. --- diff --git a/NEWS b/NEWS index 0717163c..e6120786 100644 --- a/NEWS +++ b/NEWS @@ -31,6 +31,8 @@ rsync changes since last release * Properly support IPv6 addresses in the rsyncd.conf "hosts allow" and "hosts deny" fields. (Hideaki Yoshifuji) + * Set the default value of --modify-window to 2 on Cygwin. (Max Bowsher) + BUG FIXES: * Fix "forward name lookup failed" errors on AIX 4.3.3. (John diff --git a/configure.in b/configure.in index d12673ce..d9112a35 100644 --- a/configure.in +++ b/configure.in @@ -247,6 +247,15 @@ yes AC_SEARCH_LIBS(getaddrinfo, inet6) fi +AC_MSG_CHECKING([default value for --modify-window]) +case $host_os in + *cygwin* ) DEFAULT_MODIFY_WINDOW=${DEFAULT_MODIFY_WINDOW:-2};; + * ) DEFAULT_MODIFY_WINDOW=${DEFAULT_MODIFY_WINDOW:-0};; +esac +AC_MSG_RESULT($DEFAULT_MODIFY_WINDOW) +AC_DEFINE_UNQUOTED(DEFAULT_MODIFY_WINDOW, $DEFAULT_MODIFY_WINDOW, + [Set to the default value for the --modify-window option]) + AC_C_BIGENDIAN AC_HEADER_DIRENT AC_HEADER_TIME diff --git a/options.c b/options.c index 602bc52a..3bfd833e 100644 --- a/options.c +++ b/options.c @@ -81,11 +81,7 @@ int only_existing=0; int opt_ignore_existing=0; int max_delete=0; int ignore_errors=0; -#ifdef _WIN32 -int modify_window=2; -#else -int modify_window=0; -#endif +int modify_window=DEFAULT_MODIFY_WINDOW; int blocking_io=-1;