From bfc73c0060c33657d0b173897a8c2c25dc0e1ca2 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Wed, 4 Sep 2019 09:41:19 +0100 Subject: [PATCH] Define PATH_MAX if it's not already defined =================================================================== Gbp-Pq: Name fix-ftbfs-hurd.patch --- Source/JavaScriptCore/runtime/ConfigFile.h | 2 ++ Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Source/JavaScriptCore/runtime/ConfigFile.h b/Source/JavaScriptCore/runtime/ConfigFile.h index f2db063dff..6ae36834ae 100644 --- a/Source/JavaScriptCore/runtime/ConfigFile.h +++ b/Source/JavaScriptCore/runtime/ConfigFile.h @@ -42,6 +42,8 @@ private: #if OS(WINDOWS) static const size_t s_maxPathLength = 260; // Windows value for "MAX_PATH" +#elif OS(HURD) + static const size_t s_maxPathLength = 4096; #else static const size_t s_maxPathLength = PATH_MAX; #endif diff --git a/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp b/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp index 5eeb9bfa74..165ac72ed8 100644 --- a/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp +++ b/Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp @@ -42,6 +42,10 @@ #include #include +#if !defined(PATH_MAX) +#define PATH_MAX 4096 +#endif + namespace WebCore { static const char* const gDictionaryDirectories[] = { -- 2.30.2