From: Pino Toscano Date: Tue, 4 Aug 2020 13:04:24 +0000 (+0100) Subject: Locally define PATH_MAX is not available X-Git-Tag: archive/raspbian/5.212.0_alpha4-5+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a97355dde65faf86492f98b2304cc78f45fac2fc;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[] = {