#define BLOCK_SIZE 700
#define RSYNC_RSH_ENV "RSYNC_RSH"
-#if HAVE_REMSH
-#define RSYNC_RSH "remsh"
-#else
-#define RSYNC_RSH "rsh"
-#endif
-
#define RSYNC_NAME "rsync"
#define BACKUP_SUFFIX "~"
#include "config.h"
+#if HAVE_REMSH
+#define RSYNC_RSH "remsh"
+#else
+#define RSYNC_RSH "rsh"
+#endif
+
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <sys/select.h>
#endif
+#ifdef HAVE_SYS_MODE_H
+/* apparently AIX needs this for S_ISLNK */
+#include <sys/mode.h>
+#endif
+
#ifdef HAVE_FNMATCH
#include <fnmatch.h>
#else