From: Pino Toscano Date: Thu, 12 Mar 2020 13:11:29 +0000 (+0000) Subject: Locally define PATH_MAX is not available X-Git-Tag: archive/raspbian/5.212.0_alpha4-1+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=80b3e3cdb0e9d6331254c75b9f309f6e4b225f33;p=qtwebkit-opensource-src.git Locally define PATH_MAX is not available 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 --- diff --git a/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp b/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp index 92ce4685..a9603bb0 100644 --- a/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp +++ b/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp @@ -45,6 +45,10 @@ #include #endif +#if !defined(PATH_MAX) +#define PATH_MAX 4096 +#endif + namespace WebCore { static const char* const gDictionaryDirectories[] = {