summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 9e791b4..4973181 100644
--- a/src/util.c
+++ b/src/util.c
@@ -272,7 +272,12 @@ lilv_dirname(const char* path)
bool
lilv_path_exists(const char* path, void* ignored)
{
+#ifdef HAVE_LSTAT
+ struct stat st;
+ return !lstat(path, &st);
+#else
return !access(path, F_OK);
+#endif
}
char*