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~svn201783/clang/lib/Basic/FileManager.cpp
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.5~svn201783.orig/clang/lib/Basic/FileManager.cpp 2014-02-20 14:46:40.801809058 +0100
|
|
+++ llvm-toolchain-snapshot_3.5~svn201783/clang/lib/Basic/FileManager.cpp 2014-02-20 14:46:40.797809058 +0100
|
|
@@ -56,6 +56,10 @@
|
|
/// represent a filename that doesn't exist on the disk.
|
|
#define NON_EXISTENT_FILE reinterpret_cast<FileEntry*>((intptr_t)-1)
|
|
|
|
+// For GNU Hurd
|
|
+#if defined(__GNU__) && !defined(PATH_MAX)
|
|
+# define PATH_MAX 4096
|
|
+#endif
|
|
|
|
FileEntry::~FileEntry() {
|
|
// If this FileEntry owns an open file descriptor that never got used, close
|
|
Index: llvm-toolchain-snapshot_3.5~svn201783/lldb/include/lldb/lldb-defines.h
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.5~svn201783.orig/lldb/include/lldb/lldb-defines.h 2014-02-20 14:46:40.801809058 +0100
|
|
+++ llvm-toolchain-snapshot_3.5~svn201783/lldb/include/lldb/lldb-defines.h 2014-02-20 14:46:40.797809058 +0100
|
|
@@ -12,6 +12,11 @@
|
|
|
|
#include "lldb/lldb-types.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~svn201783/lib/Support/Unix/Path.inc
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.5~svn201783.orig/lib/Support/Unix/Path.inc 2014-02-20 14:46:40.801809058 +0100
|
|
+++ llvm-toolchain-snapshot_3.5~svn201783/lib/Support/Unix/Path.inc 2014-02-20 14:46:40.797809058 +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;
|