changeset 1949:03bd8fe085db

[STAT_MACROS_BROKEN] (S_ISLNK): Undefine. (S_ISLNK): Define if necessary. This is necessary on a NEC SX-4 with SUPER-UX 9.1.
author Jim Meyering <jim@meyering.net>
date Sun, 19 Sep 1999 16:46:50 +0000
parents a5764321dc19
children d6ac9a551e4f
files lib/lchown.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/lchown.c
+++ b/lib/lchown.c
@@ -27,6 +27,14 @@
 #endif
 #include "lchown.h"
 
+#ifdef STAT_MACROS_BROKEN
+# undef S_ISLNK
+#endif
+#if !defined(S_ISLNK) && defined(S_IFLNK)
+# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
+#endif
+
+
 /* Declare chown to avoid a warning.  Don't include unistd.h,
    because it may have a conflicting prototype for lchown.  */
 int chown ();