diff options
author | Steve Langasek <vorlon@debian.org> | 2010-09-02 10:25:09 -0700 |
---|---|---|
committer | Steve Langasek <vorlon@debian.org> | 2019-01-08 21:48:26 -0800 |
commit | 5fcd736d7f0b7744030245e872caf06066094c34 (patch) | |
tree | 83dfaf52abd73edd2f543ef8cb468c8b0e3f1526 /debian/patches-applied | |
parent | dce501d3ac1cf5c46ef03b03d978dac4e263a0a9 (diff) |
debian/patches-applied/no_PATH_MAX_on_hurd: define PATH_MAX for
compatibility when it's not already set. Closes: #552043.
Diffstat (limited to 'debian/patches-applied')
-rw-r--r-- | debian/patches-applied/no_PATH_MAX_on_hurd | 22 | ||||
-rw-r--r-- | debian/patches-applied/series | 1 |
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 1d1a6034..4fdb9cd8 100644 --- a/debian/patches-applied/series +++ b/debian/patches-applied/series @@ -20,3 +20,4 @@ autoconf.patch update-motd fix-man-crud sys-types-include.patch +no_PATH_MAX_on_hurd |