llvm-toolchain/debian/patches/hurd-pathmax.diff
Sylvestre Ledru 9e36f19118 * New snapshot release
* Merge changes from the 3.3 branch (see 1:3.3-10)
* Install libclang.so in /usr/lib/*/libclang-3.3.so
* Install libclang.so.1 in /usr/lib/*/libclang-3.3.so.1
* Also ship the python clang binding (python-clang-3.3)
  (LLVM no longer mean Low Level Virtual Machine)
* Disable the build of lldb under HURD
* Ship the lldb headers into lldb-X.Y-dev (Closes: #723743)
  I might create a liblldb-X.Y library at some point but I think it is too
  early.
* Fix "cannot compile this atomic library call"
  Thanks to Francisco Facioni for the refresh (Closes: #705115)
* Install libclang.so in /usr/lib/*/libclang-3.3.so
* Install libclang.so.1 in /usr/lib/*/libclang-3.3.so.1
* Also ship the python clang binding (python-clang-3.3)
* Fix a FTBFS with a duplicate declaration of shouldUseInlineAtomic
* Update the build dependency from tcl8.5 to tcl (Closes: #725953)
2013-10-10 11:40:12 +00:00

33 lines
1.2 KiB
Diff

Index: llvm-toolchain-snapshot_3.4~svn192346/clang/lib/Basic/FileManager.cpp
===================================================================
--- llvm-toolchain-snapshot_3.4~svn192346.orig/clang/lib/Basic/FileManager.cpp 2013-10-10 13:38:37.914082328 +0200
+++ llvm-toolchain-snapshot_3.4~svn192346/clang/lib/Basic/FileManager.cpp 2013-10-10 13:38:37.910082329 +0200
@@ -43,6 +43,11 @@
#if defined(LLVM_ON_UNIX)
#include <limits.h>
#endif
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
using namespace clang;
// FIXME: Enhance libsystem to support inode and other fields.
Index: llvm-toolchain-snapshot_3.4~svn192346/lldb/include/lldb/lldb-defines.h
===================================================================
--- llvm-toolchain-snapshot_3.4~svn192346.orig/lldb/include/lldb/lldb-defines.h 2013-10-10 13:38:37.914082328 +0200
+++ llvm-toolchain-snapshot_3.4~svn192346/lldb/include/lldb/lldb-defines.h 2013-10-10 13:38:37.910082329 +0200
@@ -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