]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileInfo.C
small changes and two patches from Dekel
[lyx.git] / src / support / FileInfo.C
index da836d2e8cc1dea0677df63948d265a370ca0e5d..3bc18c123120fd13509a765a9d4eb983ba4559d3 100644 (file)
 
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <cerrno>
@@ -136,9 +140,9 @@ void FileInfo::init()
 void FileInfo::dostat(bool link)
 {
        if (link) {
-               status = lstat(fname.c_str(), &buf);
+               status = ::lstat(fname.c_str(), &buf);
        } else {
-               status = stat(fname.c_str(), &buf);
+               status = ::stat(fname.c_str(), &buf);
        }
        if (status) err = errno;
 }
@@ -382,3 +386,6 @@ bool FileInfo::access(int p)
                return false;
        }
 }
+
+
+