Locally define PATH_MAX is not available
authorPino Toscano <pino@debian.org>
Fri, 11 Dec 2020 08:32:37 +0000 (08:32 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 11 Dec 2020 08:32:37 +0000 (08:32 +0000)
Forwarded: no
Last-Update: 2017-11-20

The code unconditionally uses PATH_MAX, which is POSIX-optional.

This fixes the build on platforms without it, such as GNU/Hurd.

Gbp-Pq: Name path_max.diff

Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp

index 92ce4685a92591b99fe486add5f45ff89a1248bb..a9603bb010531471cbc2fd8aee94df5d79271377 100644 (file)
 #include <wtf/glib/GUniquePtr.h>
 #endif
 
+#if !defined(PATH_MAX)
+#define PATH_MAX 4096
+#endif
+
 namespace WebCore {
 
 static const char* const gDictionaryDirectories[] = {