From 55bc87c86016f84ace7f65e26fd93b7c13552715 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Tue, 9 Apr 2024 14:09:50 +0200 Subject: [PATCH] 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 --- Source/WTF/wtf/posix/FileSystemPOSIX.cpp | 4 ++++ .../platform/text/hyphen/HyphenationLibHyphen.cpp | 10 ++++++++++ 2 files changed, 14 insertions(+) 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 41cb672240..f934a67e7f 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, '_', '-'); -- 2.30.2