File: no_PATH_MAX_on_hurd

package info (click to toggle)
pam 1.1.8-3.6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,800 kB
  • ctags: 2,930
  • sloc: ansic: 31,350; xml: 21,611; sh: 11,344; makefile: 1,563; perl: 893; yacc: 408; lex: 70; sed: 16
file content (22 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)
 {