lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 16.09-beta 21 lines 600 B view raw
1diff -rc db-4.4.20.NC-old/os/os_flock.c db-4.4.20.NC/os/os_flock.c 2*** db-4.4.20.NC-old/os/os_flock.c Mon Jun 20 16:59:01 2005 3--- db-4.4.20.NC/os/os_flock.c Wed Jun 7 17:01:49 2006 4*************** 5*** 36,41 **** 6--- 36,50 ---- 7 8 DB_ASSERT(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(offset < (off_t) 1 << 62); 16+ offset += (off_t) 1 << 62; 17+ #endif 18+ 19 #ifdef HAVE_FCNTL 20 fl.l_start = offset; 21 fl.l_len = 1;