about summary refs log tree commit diff stats
path: root/src/LYLocal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYLocal.c')
-rw-r--r--src/LYLocal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LYLocal.c b/src/LYLocal.c
index 3cacc77e..b80c9a45 100644
--- a/src/LYLocal.c
+++ b/src/LYLocal.c
@@ -2358,8 +2358,8 @@ PRIVATE int LYExecv ARGS3(
 #else
 #if defined(_WINDOWS)
     if (!strcmp(path, TOUCH_PATH)) {
-#if defined(__BORLANDC__)
-	int fd = creat(argv[1], 'rw');
+#if defined(__BORLANDC__) || defined(__MINGW32__) 
+	int fd = _creat(argv[1], S_IREAD | S_IWRITE); 
 #else /* Visual C++ */
 	int fd = _creat(argv[1], _S_IREAD | _S_IWRITE);
 #endif