mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
99f5d2edb4
Currently, the berkeley databases resuses a lot of the same code for the expressions of each version. This consolidates all of the build routines similar to that of the linux kernel. This patch also adds version 6 of BDB.
23 lines
684 B
Diff
23 lines
684 B
Diff
diff -rc db-4.5.20-orig/os/os_flock.c db-4.5.20/os/os_flock.c
|
|
*** db-4.5.20-orig/os/os_flock.c 2006-10-13 12:36:12.000000000 +0200
|
|
--- db-4.5.20/os/os_flock.c 2006-10-13 12:40:11.000000000 +0200
|
|
***************
|
|
*** 30,35 ****
|
|
--- 30,44 ----
|
|
|
|
DB_ASSERT(dbenv, F_ISSET(fhp, DB_FH_OPENED) && fhp->fd != -1);
|
|
|
|
+ #ifdef __CYGWIN__
|
|
+ /*
|
|
+ * Windows file locking interferes with read/write operations, so we
|
|
+ * map the ranges to an area past the end of the file.
|
|
+ */
|
|
+ DB_ASSERT(dbenv, offset < (off_t) 1 << 62);
|
|
+ offset += (off_t) 1 << 62;
|
|
+ #endif
|
|
+
|
|
fl.l_start = offset;
|
|
fl.l_len = 1;
|
|
fl.l_type = acquire ? F_WRLCK : F_UNLCK;
|
|
Only in db-4.5.20/os: os_flock.c~
|