diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-07 21:39:18 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-07 21:39:18 -0700 |
commit | 23cfdb2ec63dac74147d54e9131cf0f1fdc1668d (patch) | |
tree | d6ab095de0431868e4df95d2da982a7efb32baa8 | |
parent | 723f24a59ba019cd2974efdcea731c6d9ca65842 (diff) | |
download | txr-23cfdb2ec63dac74147d54e9131cf0f1fdc1668d.tar.gz txr-23cfdb2ec63dac74147d54e9131cf0f1fdc1668d.tar.bz2 txr-23cfdb2ec63dac74147d54e9131cf0f1fdc1668d.zip |
* 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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysif.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2015-08-07 Kaz Kylheku <kaz@kylheku.com> + * 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 <kaz@kylheku.com> + Change to different exception for debugger quit. * debug.c (debug_quit_s): New global variable. @@ -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) { |