From: Pino Toscano Date: Mon, 17 Feb 2020 18:55:34 +0000 (+0000) Subject: Locally define PATH_MAX is not available X-Git-Tag: archive/raspbian/5.212.0_alpha3-7+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ecce911b30b8d597df09a000a1f20f31ec53558c;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[] = {