Define PATH_MAX if it's not already defined
authorAlberto Garcia <berto@igalia.com>
Sat, 11 Nov 2017 12:26:11 +0000 (12:26 +0000)
committerAlberto Garcia <berto@igalia.com>
Sat, 11 Nov 2017 12:26:11 +0000 (12:26 +0000)
===================================================================

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 6c206b8aa0cdc1bad3164d3bf7bf11a54a1613bf..d910c422bb2479c2ca60d6bea488738974783b7d 100644 (file)
 #include <wtf/glib/GUniquePtr.h>
 #endif
 
+#if !defined(PATH_MAX)
+#define PATH_MAX 4096
+#endif
+
 namespace WebCore {
 
 static const char* const gDictionaryDirectories[] = {