aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index 49dcd89d8..c592b8d2c 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -161,6 +161,14 @@ int err_win_to_posix(void)
161 return error; 161 return error;
162} 162}
163 163
164#undef strerror
165char *mingw_strerror(int errnum)
166{
167 if (errnum == ELOOP)
168 return (char *)"Too many levels of symbolic links";
169 return strerror(errnum);
170}
171
164static int zero_fd = -1; 172static int zero_fd = -1;
165static int rand_fd = -1; 173static int rand_fd = -1;
166 174