Commit 688d5732 authored by David Dykstra's avatar David Dykstra

Make the default for --modify-window be 2 on cygwin.

parent ec6e0bf0
......@@ -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
......
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment