diff options
author | Jim Meyering <jim@meyering.net> | 1997-08-31 21:02:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-08-31 21:02:35 +0000 |
commit | e340982761b1d45999203eee184a0521f9e1f222 (patch) | |
tree | 2d63550d2a027b563f11fbe7bb763e46f0b91496 /lib | |
parent | c98bd4b9f301e50a4422b9f74cdae60b8be00128 (diff) | |
download | coreutils-e340982761b1d45999203eee184a0521f9e1f222.tar.xz |
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lstat.c | 10 |
1 files changed, 7 insertions, 3 deletions
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 <config.h> + +/* 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 <sys/types.h> #include <sys/stat.h> #include <errno.h> @@ -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); } |