summaryrefslogtreecommitdiff
path: root/lib/lchown.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lchown.c')
-rw-r--r--lib/lchown.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/lchown.c b/lib/lchown.c
index 9b99651eb..ec754eac8 100644
--- a/lib/lchown.c
+++ b/lib/lchown.c
@@ -26,18 +26,7 @@
extern int errno;
#endif
#include "lchown.h"
-
-#ifdef STAT_MACROS_BROKEN
-# undef S_ISLNK
-#endif
-
-#ifndef S_ISLNK
-# ifdef S_IFLNK
-# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
-# else
-# define S_ISLNK(m) 0
-# endif
-#endif
+#include "stat-macros.h"
/* Declare chown to avoid a warning. Don't include unistd.h,
because it may have a conflicting prototype for lchown. */