hurd-pathmax
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 18 Oct 2017 14:37:25 +0000 (15:37 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 18 Oct 2017 14:37:25 +0000 (15:37 +0100)
===================================================================

Gbp-Pq: Name hurd-pathmax.diff

clang/lib/Basic/FileManager.cpp
lib/Support/Unix/Path.inc
lldb/include/lldb/lldb-defines.h
polly/lib/External/ppcg/cuda_common.c
tools/dsymutil/DwarfLinker.cpp

index 50050d0a519b57da276b4cb416aa4e1d8f4945ce..8a84a0ff5294519ff6620398bdbec5d8b70812af 100644 (file)
@@ -500,6 +500,12 @@ 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 {
   UIDToFiles.clear();
index e0b11aaff0071029fa864f97e88fd157efa8792c..60702b083b474f0fa64062a7b389370b98d80aab 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 a1318f4412e9ca8dae54151c0bd4d69b9f3f5321..9bf8d2543d86aeb19331a06d398e8c5736600e8a 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 497353f4319f4cbfd7e931ae591b037cdd95b911..dd0690fb4e7b4c047a485f46be54c0c2a82904a6 100644 (file)
 #include "cuda_common.h"
 #include "ppcg.h"
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 /* Open the host .cu file and the kernel .hu and .cu files for writing.
  * Add the necessary includes.
  */
index f1ec8a62267128983367fceee0134eddf0f9abe4..08e743ab807150188d3408a6092d27f036f1691c 100644 (file)
 #include <string>
 #include <tuple>
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 namespace llvm {
 namespace dsymutil {