From 23cfdb2ec63dac74147d54e9131cf0f1fdc1668d Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 7 Aug 2015 21:39:18 -0700 Subject: * sysif.c (w_lstat): If we don't have S_IFLINK, implement w_lstat as an alias to w_stat. This helps build on MinGW. --- ChangeLog | 5 +++++ sysif.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 42a645de..ebf4264e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-08-07 Kaz Kylheku + + * sysif.c (w_lstat): If we don't have S_IFLINK, implement + w_lstat as an alias to w_stat. This helps build on MinGW. + 2015-08-07 Kaz Kylheku Change to different exception for debugger quit. 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) { -- cgit v1.2.3