meson.build: define PATH_MAX where it's missing
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 30 Aug 2020 22:36:38 +0000 (08:36 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 31 Aug 2020 22:56:56 +0000 (08:56 +1000)
commit4d0d509129e5f80c4a9efe4523fc4b0aea58622b
treec086f4afcbcc9ed5aaf7061b3744f305bca7c7b2
parent4b2a91431b40cd4745f6f562fdc9600afc1a507d
meson.build: define PATH_MAX where it's missing

PATH_MAX is not POSIX and can be missing on some systems, notably Windows (which
provides MAX_PATH instead tough) and Hurd. Let's define it to a sane value where
missing, i.e.  the one it's defined to in limits.h. Except on Windows where
we're limited to 260.

Fixes https://github.com/xkbcommon/libxkbcommon/issues/180

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build
tools/tools-common.c