hurd-pathmax
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 15 Apr 2017 10:03:30 +0000 (10:03 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 15 Apr 2017 10:03:30 +0000 (10:03 +0000)
===================================================================

Gbp-Pq: Name hurd-pathmax.diff

clang/lib/Basic/FileManager.cpp
lib/Support/Unix/Path.inc
lldb/include/lldb/lldb-defines.h
tools/dsymutil/DwarfLinker.cpp

index ce9b7e1bb48c7601b783e0c07d120602c3ebe406..58c5205f29101cfa699ecf2af8b099c61d4bcbaf 100644 (file)
@@ -497,6 +497,10 @@ void FileManager::invalidateCache(const FileEntry *Entry) {
   UniqueRealFiles.erase(Entry->getUniqueID());
 }
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
 
 void FileManager::GetUniqueIDMapping(
                    SmallVectorImpl<const FileEntry *> &UIDToFiles) const {
index 84aafcb70d73a933d2db30a010314a6771f2c1e7..e66a1b28ea3343b42b696fe3b9ac72cde8271aef 100644 (file)
@@ -62,6 +62,7 @@
 // For GNU Hurd
 #if defined(__GNU__) && !defined(PATH_MAX)
 # define PATH_MAX 4096
+# define MAXPATHLEN 4096
 #endif
 
 #include <sys/types.h>
index 175cecd7e322913b29aa441c7c544d380504ac4e..c4a5b710a79be3d441be6f0f6130c334b101b27d 100644 (file)
     #define INT32_MAX 2147483647
 #endif
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 #if !defined(UINT32_MAX)
     #define UINT32_MAX 4294967295U
 #endif
index bea30ded591fc55e304824d8d7a87be043c60eaa..b7c87b622e73203e8ee8cd565a74ef5fcb2dc126 100644 (file)
 #include <string>
 #include <tuple>
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 namespace llvm {
 namespace dsymutil {