summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-08-31 08:36:38 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-09-01 08:56:56 +1000
commit4d0d509129e5f80c4a9efe4523fc4b0aea58622b (patch)
treec086f4afcbcc9ed5aaf7061b3744f305bca7c7b2 /tools
parent4b2a91431b40cd4745f6f562fdc9600afc1a507d (diff)
downloadxorg-lib-libxkbcommon-4d0d509129e5f80c4a9efe4523fc4b0aea58622b.tar.gz
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/tools-common.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/tools-common.c b/tools/tools-common.c
index 0c1ffb9..254499d 100644
--- a/tools/tools-common.c
+++ b/tools/tools-common.c
@@ -42,9 +42,6 @@
#ifdef _MSC_VER
#include <io.h>
#include <windows.h>
-#ifndef PATH_MAX
-#define PATH_MAX MAX_PATH
-#endif
#else
#include <unistd.h>
#include <termios.h>