only include sys/mod.h if S_ISLNK is not already defined. This allows
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 9790c7c..e5f73df 100644 (file)
--- a/rsync.h
+++ b/rsync.h
 
 #ifdef HAVE_SYS_MODE_H
 /* apparently AIX needs this for S_ISLNK */
+#ifndef S_ISLNK
 #include <sys/mode.h>
 #endif
+#endif
 
 #ifdef HAVE_FNMATCH
 #include <fnmatch.h>