diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:07:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:07:13 +0000 |
commit | f7306ad5fe007b53bff4380cec48596da36d27c0 (patch) | |
tree | 8bbc3e3997ed07ffe94de91e483975424c534e53 /debian/patches/20-hurd-locking-style.patch | |
parent | Adding upstream version 3.45.1. (diff) | |
download | sqlite3-f7306ad5fe007b53bff4380cec48596da36d27c0.tar.xz sqlite3-f7306ad5fe007b53bff4380cec48596da36d27c0.zip |
Adding debian version 3.45.1-1.debian/3.45.1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/20-hurd-locking-style.patch')
-rw-r--r-- | debian/patches/20-hurd-locking-style.patch | 47 |
1 files changed, 47 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..0667d25 --- /dev/null +++ b/debian/patches/20-hurd-locking-style.patch @@ -0,0 +1,47 @@ +--- a/src/os_unix.c ++++ b/src/os_unix.c +@@ -85,7 +85,7 @@ + # include <sys/mman.h> + #endif + +-#if SQLITE_ENABLE_LOCKING_STYLE ++#if SQLITE_ENABLE_LOCKING_STYLE || defined(__GNU__) + # include <sys/ioctl.h> + # include <sys/file.h> + # include <sys/param.h> +@@ -2236,7 +2236,7 @@ + ** + ** Omit this section if SQLITE_ENABLE_LOCKING_STYLE is turned off + */ +-#if SQLITE_ENABLE_LOCKING_STYLE ++#if SQLITE_ENABLE_LOCKING_STYLE || defined(__GNU__) + + /* + ** Retry flock() calls that fail with EINTR +@@ -5039,7 +5039,7 @@ + 0 /* xShmMap method */ + ) + +-#if SQLITE_ENABLE_LOCKING_STYLE ++#if SQLITE_ENABLE_LOCKING_STYLE || defined(__GNU__) + IOMETHODS( + flockIoFinder, /* Finder function name */ + flockIoMethods, /* sqlite3_io_methods object name */ +@@ -7505,6 +7505,8 @@ + UNIXVFS("unix", autolockIoFinder ), + #elif OS_VXWORKS + UNIXVFS("unix", vxworksIoFinder ), ++#elif defined(__GNU__) ++ UNIXVFS("unix", flockIoFinder ), + #else + UNIXVFS("unix", posixIoFinder ), + #endif +@@ -7514,7 +7516,7 @@ + #if OS_VXWORKS + UNIXVFS("unix-namedsem", semIoFinder ), + #endif +-#if SQLITE_ENABLE_LOCKING_STYLE || OS_VXWORKS ++#if SQLITE_ENABLE_LOCKING_STYLE || OS_VXWORKS || defined(__GNU__) + UNIXVFS("unix-posix", posixIoFinder ), + #endif + #if SQLITE_ENABLE_LOCKING_STYLE |