Fix the FTBFS under hurd

This commit is contained in:
Sylvestre Ledru 2013-08-18 20:02:14 +00:00
parent fa03f0a5a2
commit fbe129744d
3 changed files with 26 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
llvm-toolchain-3.3 (1:3.3-6) unstable; urgency=low
* Fix the FTBFS under hurd
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 18 Aug 2013 16:45:53 +0200
llvm-toolchain-3.3 (1:3.3-5) unstable; urgency=low
* Install llvm-c headers also in usr/include/llvm-3.3/llvm-c

19
debian/patches/hurd.diff vendored Normal file
View File

@ -0,0 +1,19 @@
Index: llvm-toolchain-3.3-3.3/clang/lib/Basic/FileManager.cpp
===================================================================
--- llvm-toolchain-3.3-3.3.orig/clang/lib/Basic/FileManager.cpp 2013-01-26 17:29:36.000000000 +0100
+++ llvm-toolchain-3.3-3.3/clang/lib/Basic/FileManager.cpp 2013-08-18 16:44:39.364713179 +0200
@@ -43,6 +43,14 @@
#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.

View File

@ -27,3 +27,4 @@ lldb33-to-r183444.patch
use-deb-json.diff
mipsel-ftbfs.diff
patch-bug-16511.diff
hurd.diff