summaryrefslogtreecommitdiffstats
path: root/sysif.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysif.c')
-rw-r--r--sysif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysif.c b/sysif.c
index 9583a18a..1be1903d 100644
--- a/sysif.c
+++ b/sysif.c
@@ -527,6 +527,7 @@ static int w_stat(val wpath, struct stat *buf)
return res;
}
+#ifdef S_IFLNK
static int w_lstat(val wpath, struct stat *buf)
{
char *path = utf8_dup_to(c_str(wpath));
@@ -534,6 +535,9 @@ static int w_lstat(val wpath, struct stat *buf)
free(path);
return res;
}
+#else
+#define w_lstat w_stat
+#endif
static int w_fstat(val stream, struct stat *buf)
{