From: rsync-bugs Date: Mon, 15 Dec 1997 18:36:21 +0000 (+0000) Subject: only include sys/mod.h if S_ISLNK is not already defined. This allows X-Git-Tag: v1.6.4~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05a6556d065717710634a4e469811b9d2fcfc630;p=thirdparty%2Frsync.git only include sys/mod.h if S_ISLNK is not already defined. This allows things to work on aix without causing broken sgi headers files to spew lots of complaints --- diff --git a/rsync.h b/rsync.h index 9790c7ce..e5f73dff 100644 --- a/rsync.h +++ b/rsync.h @@ -146,8 +146,10 @@ #ifdef HAVE_SYS_MODE_H /* apparently AIX needs this for S_ISLNK */ +#ifndef S_ISLNK #include #endif +#endif #ifdef HAVE_FNMATCH #include