hurd-pathmax
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 30 Oct 2024 20:56:13 +0000 (21:56 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 30 Oct 2024 20:56:13 +0000 (21:56 +0100)
===================================================================

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

clang/lib/Basic/FileManager.cpp
lldb/include/lldb/lldb-defines.h

index 4509cee1ca0fedf96bd1c9f1ffeff93284346031..7e85134eb337f0cdf0553c4a8708ed20b8aad2c4 100644 (file)
@@ -609,6 +609,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<OptionalFileEntryRef> &UIDToFiles) const {
   UIDToFiles.clear();
index c7bd019c5c90eb950be821f85683376f9773f434..04a562ec2497b9951efe7be43a0d913332710350 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