hurd-pathmax
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 4 Jun 2022 13:30:38 +0000 (14:30 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 4 Jun 2022 13:30:38 +0000 (14:30 +0100)
===================================================================

Gbp-Pq: Topic hurd
Gbp-Pq: Name hurd-pathmax.diff

clang/lib/Basic/FileManager.cpp
lldb/include/lldb/lldb-defines.h
polly/lib/External/ppcg/cuda_common.c

index 74cd2f295be60f4784944b36647f4f51c462fd41..f3c96c472dd7cd2ab011cc255cdd43ab8120e41a 100644 (file)
@@ -580,6 +580,12 @@ FileManager::getNoncachedStatValue(StringRef Path,
   return std::error_code();
 }
 
+// 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 4bf01c3f86c61ea200482ed77b9af179dacc42bf..0abc445a627ea6bb8b54d1a83a81f43ee33d5f68 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.
  */