diff options
author | Hans-Christoph Steiner <hans@eds.org> | 2012-03-30 20:43:01 -0400 |
---|---|---|
committer | Hans-Christoph Steiner <hans@eds.org> | 2012-03-30 20:43:01 -0400 |
commit | 246cfeb8b989732222389be34a7fe11091533f09 (patch) | |
tree | f0a250f78670d012325b3ca522f086485188cc24 /debian/patches/20-hurd-locking-style.patch | |
parent | 7bb481fda9ecb134804b49c2ce77ca28f7eea583 (diff) |
checking in packaging from sqlite3_3.7.11-2.debian.tar.gz
Diffstat (limited to 'debian/patches/20-hurd-locking-style.patch')
-rw-r--r-- | debian/patches/20-hurd-locking-style.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/20-hurd-locking-style.patch b/debian/patches/20-hurd-locking-style.patch new file mode 100644 index 0000000..99d7779 --- /dev/null +++ b/debian/patches/20-hurd-locking-style.patch @@ -0,0 +1,38 @@ +--- a/src/os_unix.c ++++ b/src/os_unix.c +@@ -124,7 +124,7 @@ + #endif + + +-#if SQLITE_ENABLE_LOCKING_STYLE ++#if SQLITE_ENABLE_LOCKING_STYLE || defined(__GNU__) + # include <sys/ioctl.h> + # if OS_VXWORKS + # include <semaphore.h> +@@ -2064,7 +2064,7 @@ + ** Omit this section if SQLITE_ENABLE_LOCKING_STYLE is turned off or if + ** compiling for VXWORKS. + */ +-#if SQLITE_ENABLE_LOCKING_STYLE && !OS_VXWORKS ++#if (SQLITE_ENABLE_LOCKING_STYLE && !OS_VXWORKS) || defined(__GNU__) + + /* + ** Retry flock() calls that fail with EINTR +@@ -4360,7 +4360,7 @@ + dotlockCheckReservedLock /* xCheckReservedLock method */ + ) + +-#if SQLITE_ENABLE_LOCKING_STYLE && !OS_VXWORKS ++#if (SQLITE_ENABLE_LOCKING_STYLE && !OS_VXWORKS) || defined(__GNU__) + IOMETHODS( + flockIoFinder, /* Finder function name */ + flockIoMethods, /* sqlite3_io_methods object name */ +@@ -6785,6 +6785,8 @@ + static sqlite3_vfs aVfs[] = { + #if SQLITE_ENABLE_LOCKING_STYLE && (OS_VXWORKS || defined(__APPLE__)) + UNIXVFS("unix", autolockIoFinder ), ++#elif defined(__GNU__) ++ UNIXVFS("unix", flockIoFinder ), + #else + UNIXVFS("unix", posixIoFinder ), + #endif |