hurd-pathmax
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 22 Dec 2017 10:17:30 +0000 (10:17 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 22 Dec 2017 10:17:30 +0000 (10:17 +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/cpu.c
polly/lib/External/ppcg/cuda_common.c
polly/lib/External/ppcg/util.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 c9ce02837bc8cdd19dd1dbcc182d24f992a42c9c..71ed6a924812b5684bd29431d6437915c405bc42 100644 (file)
@@ -22,6 +22,7 @@
 #include "ppcg_options.h"
 #include "cpu.h"
 #include "print.h"
+#include "util.h"
 
 /* Representation of a statement inside a generated AST.
  *
index 497353f4319f4cbfd7e931ae591b037cdd95b911..13ec9b433e1470a3063e94d300648802a75e4c3f 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "cuda_common.h"
 #include "ppcg.h"
+#include "util.h"
 
 /* Open the host .cu file and the kernel .hu and .cu files for writing.
  * Add the necessary includes.
index 6c29a150e4d16d8767d9970aad18001739c29d9c..123cd0e161d565eb25eda3c4814be658a66716ad 100644 (file)
@@ -10,4 +10,10 @@ static inline int prefixcmp(const char *s, const char *prefix)
        return strncmp(s, prefix, strlen(prefix));
 }
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
+
 #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 {