summaryrefslogtreecommitdiff
path: root/debian/patches-applied
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2011-02-15 23:47:58 -0800
committerSteve Langasek <vorlon@debian.org>2019-01-08 21:33:32 -0800
commit5018cd2e8cb108258e17d69a456a8fbdcc64c51a (patch)
tree8424076fb8eaf9057cf4cdfe6d5e58d0e452bc32 /debian/patches-applied
parent623501257bd37bd906e4e35f84d25e2dca5c5ed4 (diff)
parent8bec66fb0e70830394368e0a0d3aba718de05642 (diff)
merge from squeeze
Diffstat (limited to 'debian/patches-applied')
-rw-r--r--debian/patches-applied/no_PATH_MAX_on_hurd22
-rw-r--r--debian/patches-applied/series1
2 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches-applied/no_PATH_MAX_on_hurd b/debian/patches-applied/no_PATH_MAX_on_hurd
new file mode 100644
index 00000000..ab7d506c
--- /dev/null
+++ b/debian/patches-applied/no_PATH_MAX_on_hurd
@@ -0,0 +1,22 @@
+Description: define PATH_MAX for compatibility when it's not already set
+ Some platforms, such as the Hurd, don't set PATH_MAX. Set a reasonable
+ default value in this case.
+Author: Steve Langasek <vorlon@debian.org>
+Bug-Debian: http://bugs.debian.org/552043
+
+Index: pam.deb/tests/tst-dlopen.c
+===================================================================
+--- pam.deb.orig/tests/tst-dlopen.c
++++ pam.deb/tests/tst-dlopen.c
+@@ -16,6 +16,11 @@
+ #include <limits.h>
+ #include <sys/stat.h>
+
++/* Hurd compatibility */
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ /* Simple program to see if dlopen() would succeed. */
+ int main(int argc, char **argv)
+ {
diff --git a/debian/patches-applied/series b/debian/patches-applied/series
index f6b5d3f7..85aaeb32 100644
--- a/debian/patches-applied/series
+++ b/debian/patches-applied/series
@@ -22,4 +22,5 @@ autoconf.patch
update-motd
fix-man-crud
sys-types-include.patch
+no_PATH_MAX_on_hurd
lib_security_multiarch_compat