only include sys/mod.h if S_ISLNK is not already defined. This allows
authorrsync-bugs <rsync-bugs>
Mon, 15 Dec 1997 18:36:21 +0000 (18:36 +0000)
committerrsync-bugs <rsync-bugs>
Mon, 15 Dec 1997 18:36:21 +0000 (18:36 +0000)
things to work on aix without causing broken sgi headers files to spew
lots of complaints

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>