summaryrefslogtreecommitdiff
path: root/lib/unlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unlink.c')
-rw-r--r--lib/unlink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/unlink.c b/lib/unlink.c
index 35463fd102..ba5f6269c3 100644
--- a/lib/unlink.c
+++ b/lib/unlink.c
@@ -27,6 +27,9 @@
#include "filename.h"
#undef unlink
+#if defined _WIN32 && !defined __CYGWIN__
+# define unlink _unlink
+#endif
/* Remove file NAME.
Return 0 if successful, -1 if not. */