From a97355dde65faf86492f98b2304cc78f45fac2fc Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 4 Aug 2020 14:04:24 +0100 Subject: [PATCH] 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 --- Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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[] = { -- 2.30.2