X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Flstat.c;h=4e220973d172c6826fa25ae606e14be78442d091;hb=12cc8b970806cca3260e499c74d2f001df705a60;hp=eb7b22843f14db5a2ed8c8ceef263e84f19f3be6;hpb=0941f53a92efc360e019b76923d0ecd380849939;p=gnulib.git diff --git a/lib/lstat.c b/lib/lstat.c index eb7b22843..4e220973d 100644 --- a/lib/lstat.c +++ b/lib/lstat.c @@ -20,6 +20,12 @@ /* written by Jim Meyering */ #include + +/* Disable the definition of lstat to rpl_lstat (from config.h) in this + file. Otherwise, we'd get conflicting prototypes for rpl_lstat on + most systems. */ +#undef lstat + #include #include #include @@ -30,7 +36,7 @@ extern int errno; /* FIXME: describe. */ int -lstat (file, sbuf) +rpl_lstat (file, sbuf) const char *file; struct stat *sbuf; { @@ -40,7 +46,5 @@ lstat (file, sbuf) return -1; } -#undef lstat - return lstat (file, sbuf); }