From: Pino Toscano Date: Sat, 17 Dec 2022 15:20:04 +0000 (+0000) Subject: Locally define PATH_MAX is not available X-Git-Tag: archive/raspbian/5.212.0_alpha4-28+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=33b37bf529b6a573686266b72c8f9b8826a620e3;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[] = {