[pacman-dev] [PATCH] Detect undefined PATH_MAX

Allan McRae allan at archlinux.org
Fri Dec 17 20:45:46 EST 2010


On 18/12/10 11:42, Allan McRae wrote:
> POSIX does not require PATH_MAX be defined when there is not actual
> limit to its value.  This affects HURD based systems.  Work around
> this by defining PATH_MAX to 4096 (as on Linux) when this is not
> defined.
>
> Also, clean up inclusions of limits.h
>
> Signed-off-by: Allan McRae<allan at archlinux.org>
> ---
>

You can easily test this works on your Linux system by editing 
/usr/include/linux/limits.h and commenting out the PATH_MAX definition.

Allan


More information about the pacman-dev mailing list