- check for sys/select.h
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 6e7210c..34792fc 100644 (file)
--- a/rsync.h
+++ b/rsync.h
 #include <utime.h>
 #endif
 
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+
 #ifdef HAVE_FNMATCH
 #include <fnmatch.h>
 #else
@@ -283,6 +287,10 @@ extern int errno;
 #define lstat stat
 #endif
 
+#ifndef HAVE_LCHOWN
+#define lchown chown
+#endif
+
 #define SIGNAL_CAST (RETSIGTYPE (*)())
 
 #ifndef EWOULDBLOCK