diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2012-04-11 15:35:36 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2012-04-11 15:35:36 +0000 |
commit | 6fc30c26b7fa9e89c4e9ab99b7feab11389cc3f4 (patch) | |
tree | c9c0eb6e787e01990aabf2e15d388c01cf58769e /lib/Support/Unix/Path.inc | |
parent | 611afc0620aed7827b5fdf9072a1827952b684b6 (diff) |
Fix the build under Debian GNU/Hurd.
Thanks to Pino Toscano for the patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Path.inc')
-rw-r--r-- | lib/Support/Unix/Path.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index b85b574ce3..ddc1e0f9ce 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -60,6 +60,11 @@ #include <mach-o/dyld.h> #endif +// For GNU Hurd +#if defined(__GNU__) && !defined(MAXPATHLEN) +# define MAXPATHLEN 4096 +#endif + // Put in a hack for Cygwin which falsely reports that the mkdtemp function // is available when it is not. #ifdef __CYGWIN__ |