hurd-pathmax
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 21 Mar 2018 21:56:33 +0000 (21:56 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 21 Mar 2018 21:56:33 +0000 (21:56 +0000)
===================================================================

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 0c10b5f4d14cbd07fa27097a7358d0b49e1cd58a..2340142b2c29d64595200ab595925fa3f7b20281 100644 (file)
@@ -501,6 +501,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 45097eb918b7c9fb018c0366c0f80f1090e458a5..f924441a3250b0e403b67e27be78005481b12ca3 100644 (file)
@@ -64,6 +64,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 86621e3260f06d7ce41e2222d32b87c69217b218..ebf71c4ad08b271c0ae66cd7418803a383f361d7 100644 (file)
 #include <string>
 #include <tuple>
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 namespace llvm {
 namespace dsymutil {