[llvm-commits] Support of HURD

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Wed Jan 18 15:23:14 PST 2012


Doesn't this

> +// For GNU Hurd (there is no limit)
> +#if defined(__GNU__) && !defined(MAXPATHLEN)
> +# define MAXPATHLEN 4096
> +#endif
> +

Makes this

>  error_code current_path(SmallVectorImpl<char> &result) {
> +#ifdef MAXPATHLEN
>    result.reserve(MAXPATHLEN);
> +#else
> +  result.reserve(1024);
> +#endif
>  

Redundant?

Cheers,
Rafael



More information about the llvm-commits mailing list