llvm-toolchain/debian/patches/29-hurd.diff
2013-01-12 14:42:43 +00:00

33 lines
1.1 KiB
Diff

Index: llvm-3.2.src/clang/lib/Lex/HeaderSearch.cpp
===================================================================
--- llvm-3.2.src.orig/clang/lib/Lex/HeaderSearch.cpp 2012-11-06 20:39:40.000000000 +0100
+++ llvm-3.2.src/clang/lib/Lex/HeaderSearch.cpp 2013-01-12 15:34:28.831063474 +0100
@@ -25,6 +25,11 @@
#include <cstdio>
using namespace clang;
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
const IdentifierInfo *
HeaderFileInfo::getControllingMacro(ExternalIdentifierLookup *External) {
if (ControllingMacro)
Index: llvm-3.2.src/clang/lib/Lex/ModuleMap.cpp
===================================================================
--- llvm-3.2.src.orig/clang/lib/Lex/ModuleMap.cpp 2012-11-06 20:41:11.000000000 +0100
+++ llvm-3.2.src/clang/lib/Lex/ModuleMap.cpp 2013-01-12 15:34:28.831063474 +0100
@@ -30,6 +30,11 @@
#include <stdlib.h>
using namespace clang;
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
Module::ExportDecl
ModuleMap::resolveExport(Module *Mod,
const Module::UnresolvedExportDecl &Unresolved,