X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstat.c;h=df0be3a81aa9202a73357a3ecfbac377c0ac8c6e;hb=a10e3d19c8c812a60794c247ff6940a04ed51bea;hp=f8fc82ebced73a59a7b1420d0c83eb62d529dfd9;hpb=d01e199f674be88351d5956a13fe6dc406efacb5;p=gnulib.git diff --git a/lib/stat.c b/lib/stat.c index f8fc82ebc..df0be3a81 100644 --- a/lib/stat.c +++ b/lib/stat.c @@ -3,7 +3,7 @@ has this bug. Also work around a deficiency in Solaris systems (up to at least Solaris 9) regarding the semantics of `lstat ("symlink/", sbuf).' - Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free + Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -27,25 +27,11 @@ #include #include #include -#ifndef errno -extern int errno; -#endif #if defined LSTAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK # include # include -# 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" # include "xalloc.h" /* lstat works differently on Linux and Solaris systems. POSIX (see