aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index c42dbed97..b1a8b9711 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -1159,6 +1159,19 @@ int mingw_mkdir(const char *path, int mode UNUSED_PARAM)
1159 return ret; 1159 return ret;
1160} 1160}
1161 1161
1162#undef chdir
1163int mingw_chdir(const char *dirname)
1164{
1165 int ret = -1;
1166 char *realdir = xmalloc_realpath(dirname);
1167
1168 if (realdir) {
1169 ret = chdir(realdir);
1170 free(realdir);
1171 }
1172 return ret;
1173}
1174
1162#undef chmod 1175#undef chmod
1163int mingw_chmod(const char *path, int mode) 1176int mingw_chmod(const char *path, int mode)
1164{ 1177{