metaentry.c: Define PATH_MAX if it's undefined.
commit16cde6c32fb3e0640ac01ca5d8ddea127f59106c
authorPrzemyslaw Pawelczyk <przemoc@gmail.com>
Wed, 3 Jan 2018 16:26:24 +0000 (3 17:26 +0100)
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>
Wed, 3 Jan 2018 16:26:24 +0000 (3 17:26 +0100)
treeedf710d199449369d0073ac1c431dc2e7905cbe3
parent5d2b607498bdf9dd83f2aafa47355573b9929881
metaentry.c: Define PATH_MAX if it's undefined.

PATH_MAX is not guaranteed by POSIX to be present and some systems, like
GNU Hurd, indeed does not define it.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html
https://www.gnu.org/software/hurd/hurd/porting/guidelines.html

For now let's define PATH_MAX as 4096 (if it is not already defined),
because that's how Linux defines it and it seems quite reasonable.
In future dependence on PATH_MAX can be removed.
src/metaentry.c