From: Alberto Garcia Date: Fri, 14 Sep 2018 18:23:00 +0000 (+0100) Subject: Define PATH_MAX if it's not already defined X-Git-Tag: archive/raspbian/2.22.0-2+rpi1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f16a1fb98b5ff17781a5185b0e7c773e2e6a3775;p=webkit2gtk.git Define PATH_MAX if it's not already defined =================================================================== Gbp-Pq: Name fix-ftbfs-hurd.patch --- 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 c908693016..ebb962f858 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[] = {