changeset 1006:79de1db9a8d1

*** empty log message ***
author Jim Meyering <jim@meyering.net>
date Sun, 31 Aug 1997 21:02:35 +0000
parents 2bcffb747838
children 577941b33d7c
files lib/lstat.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 /* FIXME: describe.  */
 
 int
-lstat (file, sbuf)
+rpl_lstat (file, sbuf)
      const char *file;
      struct stat *sbuf;
 {
@@ -40,7 +46,5 @@
       return -1;
     }
 
-#undef lstat
-
   return lstat (file, sbuf);
 }