aboutsummaryrefslogtreecommitdiffstats
path: root/compat/mingw-posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/mingw-posix.h')
-rw-r--r--compat/mingw-posix.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/compat/mingw-posix.h b/compat/mingw-posix.h
index 8dddfa818d..88e0cf9292 100644
--- a/compat/mingw-posix.h
+++ b/compat/mingw-posix.h
@@ -201,8 +201,12 @@ int uname(struct utsname *buf);
* replacements of existing functions
*/
-int mingw_unlink(const char *pathname);
-#define unlink mingw_unlink
+int mingw_unlink(const char *pathname, int handle_in_use_error);
+#ifdef MINGW_DONT_HANDLE_IN_USE_ERROR
+# define unlink(path) mingw_unlink(path, 0)
+#else
+# define unlink(path) mingw_unlink(path, 1)
+#endif
int mingw_rmdir(const char *path);
#define rmdir mingw_rmdir