X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstat.c;h=df0be3a81aa9202a73357a3ecfbac377c0ac8c6e;hb=c60b43afa76cbc6ed19a4794eab0fe15f9b54300;hp=284da0cbc8a1cfe60dc3df5d09970e9757c9db12;hpb=e57b0bd6cce7d468a30356c0a2cdab8a0af58eca;p=gnulib.git diff --git a/lib/stat.c b/lib/stat.c index 284da0cbc..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,35 +27,11 @@ #include #include #include -#ifndef errno -extern int errno; -#endif #if defined LSTAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK +# include # include -# if HAVE_STDLIB_H -# include -# endif - -# 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 - -# ifndef HAVE_DECL_FREE -"this configure-time declaration test was not run" -# endif -# if !HAVE_DECL_FREE -void free (); -# endif - +# include "stat-macros.h" # include "xalloc.h" /* lstat works differently on Linux and Solaris systems. POSIX (see