aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os_win.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os_win.c b/src/os_win.c
index fd2f75bca..b242bd98f 100644
--- a/src/os_win.c
+++ b/src/os_win.c
@@ -644,6 +644,13 @@ static int winFileSize(OsFile *id, i64 *pSize){
}
/*
+** LOCKFILE_FAIL_IMMEDIATELY is undefined on some Windows systems.
+*/
+#ifndef LOCKFILE_FAIL_IMMEDIATELY
+# define LOCKFILE_FAIL_IMMEDIATELY 1
+#endif
+
+/*
** Acquire a reader lock.
** Different API routines are called depending on whether or not this
** is Win95 or WinNT.