hurd-pathmax
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 11 Jul 2019 03:08:05 +0000 (04:08 +0100)
committerRaspbian forward porter <root@raspbian.org>
Thu, 11 Jul 2019 03:08:05 +0000 (04:08 +0100)
===================================================================

Gbp-Pq: Name hurd-pathmax.diff

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

index a3e226d6cc964d539d047ed6f862197a4f20663f..8a62c13fee6595ef925434ba690ea462b893fa87 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 ede12aab6e695144774167d1c6d0facd14d2cbb5..49bb7cdd521bb086126f7de22b15d76dce16e7b3 100644 (file)
@@ -97,6 +97,11 @@ struct ModuleDependencyMMCallbacks : public ModuleMapCallbacks {
 
 }
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 // TODO: move this to Support/Path.h and check for HAVE_REALPATH?
 static bool real_path(StringRef SrcPath, SmallVectorImpl<char> &RealPath) {
 #ifdef LLVM_ON_UNIX
index 2ecb97316c87a04279c091fda53f8af8124deae2..b8ab955d7fb2f01765921b89b51067751f728049 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 0f5713b6b4fdefcc1ed2a17bf0662312cdb79281..752d876090ae608e037ea481302d4c842938d9f0 100644 (file)
 #include <utility>
 #include <vector>
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 namespace llvm {
 namespace dsymutil {