]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
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 9790c7cec98e9e5ff4998cde8eba25474790b591..e5f73dff178385c987de9cc141821f18a2f2b33e 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>