*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sun, 31 Aug 1997 21:02:35 +0000 (21:02 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 31 Aug 1997 21:02:35 +0000 (21:02 +0000)
lib/lstat.c

index eb7b228..4e22097 100644 (file)
 /* 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);
 }