lol
1diff -rc db-4.5.20-orig/os/os_flock.c db-4.5.20/os/os_flock.c
2*** db-4.5.20-orig/os/os_flock.c 2006-10-13 12:36:12.000000000 +0200
3--- db-4.5.20/os/os_flock.c 2006-10-13 12:40:11.000000000 +0200
4***************
5*** 30,35 ****
6--- 30,44 ----
7
8 DB_ASSERT(dbenv, F_ISSET(fhp, DB_FH_OPENED) && fhp->fd != -1);
9
10+ #ifdef __CYGWIN__
11+ /*
12+ * Windows file locking interferes with read/write operations, so we
13+ * map the ranges to an area past the end of the file.
14+ */
15+ DB_ASSERT(dbenv, offset < (off_t) 1 << 62);
16+ offset += (off_t) 1 << 62;
17+ #endif
18+
19 fl.l_start = offset;
20 fl.l_len = 1;
21 fl.l_type = acquire ? F_WRLCK : F_UNLCK;
22Only in db-4.5.20/os: os_flock.c~