From: Alberto Garcia Date: Tue, 5 Dec 2023 13:28:29 +0000 (+0100) Subject: Don't try to use PATH_MAX in the Hurd X-Git-Tag: archive/raspbian/2.44.2-1+rpi1^2^2^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1fe12bdbe37f3319e34982031e4826201f798ca6;p=webkit2gtk.git Don't try to use PATH_MAX in the Hurd Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978098 Bug: https://bugs.webkit.org/show_bug.cgi?id=219572 =================================================================== Gbp-Pq: Name fix-ftbfs-hurd.patch --- diff --git a/Source/WTF/wtf/posix/FileSystemPOSIX.cpp b/Source/WTF/wtf/posix/FileSystemPOSIX.cpp index c214c14621..987b3e44c4 100644 --- a/Source/WTF/wtf/posix/FileSystemPOSIX.cpp +++ b/Source/WTF/wtf/posix/FileSystemPOSIX.cpp @@ -50,6 +50,10 @@ #include #endif +#if OS(HURD) +#define PATH_MAX 4096 +#endif + namespace WTF { namespace FileSystemImpl { diff --git a/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp b/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp index 4417280932..a9edb298ad 100644 --- a/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp +++ b/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp @@ -72,11 +72,21 @@ static void scanDirectoryForDictionaries(const char* directoryPath, HashMap()).iterator->value.append(filePath); String localeReplacingUnderscores = makeStringByReplacingAll(locale, '_', '-');