diff options
Diffstat (limited to 'devel/cvs-devel/files/patch-PATH_MAX_check')
-rw-r--r-- | devel/cvs-devel/files/patch-PATH_MAX_check | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/cvs-devel/files/patch-PATH_MAX_check b/devel/cvs-devel/files/patch-PATH_MAX_check new file mode 100644 index 000000000000..0af532bd4bc6 --- /dev/null +++ b/devel/cvs-devel/files/patch-PATH_MAX_check @@ -0,0 +1,27 @@ +# Fix FTBFS in hurd-i386 regarding bad check of PATH_MAX. +# Closes: #378966 +# Thanks to Cyril Brulebois <cyril.brulebois@enst-bretagne.fr> +diff -Nur lib/chdir-long.c lib/chdir-long.c +--- lib/chdir-long.c 2005-09-19 21:12:18.000000000 +0000 ++++ lib/chdir-long.c 2006-07-20 02:47:32.000000000 +0000 +@@ -39,9 +39,7 @@ + # define O_DIRECTORY 0 + #endif + +-#ifndef PATH_MAX +-# error "compile this file only if your system defines PATH_MAX" +-#endif ++#ifdef PATH_MAX + + struct cd_buf + { +@@ -269,6 +267,8 @@ + } + #endif + ++#endif /* PATH_MAX */ ++ + /* + Local Variables: + compile-command: "gcc -DTEST_CHDIR=1 -DHAVE_CONFIG_H -I.. -g -O -W -Wall chdir-long.c libcoreutils.a" + |