mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 02:21:13 +00:00
44 lines
1.8 KiB
Diff
44 lines
1.8 KiB
Diff
Index: llvm-toolchain-snapshot_3.5~svn202847/clang/lib/Basic/FileManager.cpp
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.5~svn202847.orig/clang/lib/Basic/FileManager.cpp 2014-03-04 14:44:48.882728178 +0100
|
|
+++ llvm-toolchain-snapshot_3.5~svn202847/clang/lib/Basic/FileManager.cpp 2014-03-04 14:44:48.878728178 +0100
|
|
@@ -476,6 +476,10 @@
|
|
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: llvm-toolchain-snapshot_3.5~svn202847/lldb/include/lldb/lldb-defines.h
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.5~svn202847.orig/lldb/include/lldb/lldb-defines.h 2014-03-04 14:44:48.882728178 +0100
|
|
+++ llvm-toolchain-snapshot_3.5~svn202847/lldb/include/lldb/lldb-defines.h 2014-03-04 14:44:48.878728178 +0100
|
|
@@ -13,6 +13,11 @@
|
|
#include "lldb/lldb-types.h"
|
|
#include "lldb/lldb-dll-export.h"
|
|
|
|
+// For GNU Hurd
|
|
+#if defined(__GNU__) && !defined(PATH_MAX)
|
|
+# define PATH_MAX 4096
|
|
+#endif
|
|
+
|
|
#if !defined(UINT32_MAX)
|
|
#define UINT32_MAX 4294967295U
|
|
#endif
|
|
Index: llvm-toolchain-snapshot_3.5~svn202847/lib/Support/Unix/Path.inc
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.5~svn202847.orig/lib/Support/Unix/Path.inc 2014-03-04 14:44:48.882728178 +0100
|
|
+++ llvm-toolchain-snapshot_3.5~svn202847/lib/Support/Unix/Path.inc 2014-03-04 14:44:48.882728178 +0100
|
|
@@ -58,6 +58,7 @@
|
|
// For GNU Hurd
|
|
#if defined(__GNU__) && !defined(PATH_MAX)
|
|
# define PATH_MAX 4096
|
|
+# define MAXPATHLEN 4096
|
|
#endif
|
|
|
|
using namespace llvm;
|