]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.C
Remove executable status info from typeIndicator.
[lyx.git] / src / support / filetools.C
index 481b8ec8867afc963c43eeebddad50e8b85e0103..7f3a6c5e96a4937211defcf564ad8462a1cc6649 100644 (file)
@@ -1145,6 +1145,7 @@ string const MakeDisplayPath(string const & path, unsigned int threshold)
 
 bool LyXReadLink(string const & file, string & link, bool resolve)
 {
+#ifdef HAVE_READLINK
        char linkbuffer[512];
        // Should be PATH_MAX but that needs autconf support
        int const nRead = ::readlink(file.c_str(),
@@ -1157,6 +1158,9 @@ bool LyXReadLink(string const & file, string & link, bool resolve)
        else
                link = linkbuffer;
        return true;
+#else
+       return false;
+#endif
 }