#endif
#include <string.h>
#include <errno.h>
+#include <limits.h>
+/* not all systems provide PATH_MAX in limits.h */
+#ifndef PATH_MAX
+# include <sys/param.h>
+# ifndef PATH_MAX
+# define PATH_MAX MAXPATHLEN
+# endif
+#endif
+
#ifdef HAVE_PWD_H
# include <pwd.h>
{ "localencoding", &opt.locale, cmd_string },
{ "logfile", &opt.lfilename, cmd_file },
{ "login", &opt.ftp_user, cmd_string },/* deprecated*/
+ { "matchservertimestamps", &opt.matchservertimestamps, cmd_boolean },
{ "maxredirect", &opt.max_redirect, cmd_number },
{ "mirror", NULL, cmd_spec_mirror },
{ "netrc", &opt.netrc, cmd_boolean },
#endif
opt.locale = NULL;
opt.encoding_remote = NULL;
+
+ opt.matchservertimestamps = true;
}
\f
/* Return the user's home directory (strdup-ed), or NULL if none is