X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Flchown.c;h=9604b543b001558fb43757f6704529d8ebb7a272;hb=bf133a41bf9dfb387f5ae52876f0d1380d53928b;hp=9c420bb0922fe3eef3c29e13cadf5d5f1d0004a4;hpb=e9721c2f5a8ea905fba888055ca0fd0767f8873d;p=gnulib.git diff --git a/lib/lchown.c b/lib/lchown.c index 9c420bb09..9604b543b 100644 --- a/lib/lchown.c +++ b/lib/lchown.c @@ -27,6 +27,13 @@ extern int errno; #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 ();