Define PATH_MAX if it's not already defined
authorAlberto Garcia <berto@igalia.com>
Tue, 9 Apr 2019 14:31:03 +0000 (15:31 +0100)
committerAlberto Garcia <berto@igalia.com>
Tue, 9 Apr 2019 14:31:03 +0000 (15:31 +0100)
===================================================================

Gbp-Pq: Name fix-ftbfs-hurd.patch

Source/JavaScriptCore/runtime/ConfigFile.h
Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp

index f2db063dffb3de8c301cdf64c6fe65a2db7119f0..6ae36834ae6f261a3053aee551483a82433545df 100644 (file)
@@ -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
index 5eeb9bfa7400f7215c026c552d82aa38a763f942..165ac72ed81a48882e7c6cad0299d75b67880564 100644 (file)
 #include <wtf/text/CString.h>
 #include <wtf/text/StringView.h>
 
+#if !defined(PATH_MAX)
+#define PATH_MAX 4096
+#endif
+
 namespace WebCore {
 
 static const char* const gDictionaryDirectories[] = {