diff options
Diffstat (limited to 'externals/bdb-cygwin.patch')
-rw-r--r-- | externals/bdb-cygwin.patch | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/externals/bdb-cygwin.patch b/externals/bdb-cygwin.patch index 3f9d658b5dac..410106722a6c 100644 --- a/externals/bdb-cygwin.patch +++ b/externals/bdb-cygwin.patch @@ -1,11 +1,11 @@ -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 +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 *************** -*** 36,41 **** ---- 36,50 ---- +*** 30,35 **** +--- 30,44 ---- - DB_ASSERT(F_ISSET(fhp, DB_FH_OPENED) && fhp->fd != -1); + DB_ASSERT(dbenv, F_ISSET(fhp, DB_FH_OPENED) && fhp->fd != -1); + #ifdef __CYGWIN__ + /* @@ -16,6 +16,7 @@ diff -rc db-4.4.20.NC-old/os/os_flock.c db-4.4.20.NC/os/os_flock.c + offset += (off_t) 1 << 62; + #endif + - #ifdef HAVE_FCNTL 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~ |