summaryrefslogtreecommitdiffstats
path: root/debian/patches/hurd-iovec
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 13:44:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 13:44:20 +0000
commit8bfbb9af55c60e9874aaa7f6e09c5531fad763ed (patch)
tree9577f8f52777ac32dee04d49fb7e07a441866dd7 /debian/patches/hurd-iovec
parentAdding upstream version 16.2. (diff)
downloadpostgresql-16-8bfbb9af55c60e9874aaa7f6e09c5531fad763ed.tar.xz
postgresql-16-8bfbb9af55c60e9874aaa7f6e09c5531fad763ed.zip
Adding debian version 16.2-1.debian/16.2-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/hurd-iovec')
-rw-r--r--debian/patches/hurd-iovec26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/hurd-iovec b/debian/patches/hurd-iovec
new file mode 100644
index 0000000..e5255f0
--- /dev/null
+++ b/debian/patches/hurd-iovec
@@ -0,0 +1,26 @@
+hurd-i386 does not define IOV_MAX
+
+--- a/src/include/port/pg_iovec.h
++++ b/src/include/port/pg_iovec.h
+@@ -20,9 +20,6 @@
+
+ #else
+
+-/* POSIX requires at least 16 as a maximum iovcnt. */
+-#define IOV_MAX 16
+-
+ /* Define our own POSIX-compatible iovec struct. */
+ struct iovec
+ {
+@@ -32,6 +29,11 @@ struct iovec
+
+ #endif
+
++/* POSIX requires at least 16 as a maximum iovcnt. */
++#ifndef IOV_MAX
++#define IOV_MAX 16
++#endif
++
+ /* Define a reasonable maximum that is safe to use on the stack. */
+ #define PG_IOV_MAX Min(IOV_MAX, 32)
+