about summary refs log tree commit diff
path: root/pkgs/development/libraries/db4
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2006-06-15 13:15:51 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2006-06-15 13:15:51 +0000
commit04a0eb8259a64426cb6ba67ad1005b9a79a31cc0 (patch)
treec67d306d755ce1e4cbcad0d05c7670c7b29075f6 /pkgs/development/libraries/db4
parent26832cd4ec0cc488492e062ffd1f84f2ef8d9bc9 (diff)
downloadnixlib-04a0eb8259a64426cb6ba67ad1005b9a79a31cc0.tar
nixlib-04a0eb8259a64426cb6ba67ad1005b9a79a31cc0.tar.gz
nixlib-04a0eb8259a64426cb6ba67ad1005b9a79a31cc0.tar.bz2
nixlib-04a0eb8259a64426cb6ba67ad1005b9a79a31cc0.tar.lz
nixlib-04a0eb8259a64426cb6ba67ad1005b9a79a31cc0.tar.xz
nixlib-04a0eb8259a64426cb6ba67ad1005b9a79a31cc0.tar.zst
nixlib-04a0eb8259a64426cb6ba67ad1005b9a79a31cc0.zip
* Doh!
svn path=/nixpkgs/trunk/; revision=5455
Diffstat (limited to 'pkgs/development/libraries/db4')
-rw-r--r--pkgs/development/libraries/db4/cygwin.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/libraries/db4/cygwin.patch b/pkgs/development/libraries/db4/cygwin.patch
new file mode 100644
index 000000000000..3f9d658b5dac
--- /dev/null
+++ b/pkgs/development/libraries/db4/cygwin.patch
@@ -0,0 +1,21 @@
+diff -rc db-4.4.20.NC-old/os/os_flock.c db-4.4.20.NC/os/os_flock.c
+*** db-4.4.20.NC-old/os/os_flock.c	Mon Jun 20 16:59:01 2005
+--- db-4.4.20.NC/os/os_flock.c	Wed Jun  7 17:01:49 2006
+***************
+*** 36,41 ****
+--- 36,50 ----
+  
+  	DB_ASSERT(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(offset < (off_t) 1 << 62);
++ 	offset += (off_t) 1 << 62;
++ #endif
++ 
+  #ifdef HAVE_FCNTL
+  	fl.l_start = offset;
+  	fl.l_len = 1;