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 8a9881763..5d9834772 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -470,3 +470,11 @@ int fcntl(int fd UNUSED_PARAM, int cmd, ...)
470 errno = EINVAL; 470 errno = EINVAL;
471 return -1; 471 return -1;
472} 472}
473
474#undef unlink
475int mingw_unlink(const char *pathname)
476{
477 /* read-only files cannot be removed */
478 chmod(pathname, 0666);
479 return unlink(pathname);
480}