From: LLVM Packaging Team Date: Sat, 29 Jan 2022 09:17:38 +0000 (+0000) Subject: hurd-pathmax X-Git-Tag: archive/raspbian/1%12.0.1-19+rpi1^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=da562cd46e2b0b36ceea0dccc395f45f0b0663e7;p=llvm-toolchain-12.git hurd-pathmax =================================================================== Gbp-Pq: Topic hurd Gbp-Pq: Name hurd-pathmax.diff --- diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index 6e9d5d7fb4..551746f4ea 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp @@ -577,6 +577,12 @@ FileManager::getNoncachedStatValue(StringRef Path, return std::error_code(); } +// For GNU Hurd +#if defined(__GNU__) && !defined(PATH_MAX) +# define PATH_MAX 4096 +#endif + + void FileManager::GetUniqueIDMapping( SmallVectorImpl &UIDToFiles) const { UIDToFiles.clear(); diff --git a/lldb/include/lldb/lldb-defines.h b/lldb/include/lldb/lldb-defines.h index 487cd0b01d..cf8f08568b 100644 --- a/lldb/include/lldb/lldb-defines.h +++ b/lldb/include/lldb/lldb-defines.h @@ -27,6 +27,11 @@ #define INT32_MAX 2147483647 #endif +// For GNU Hurd +#if defined(__GNU__) && !defined(PATH_MAX) +# define PATH_MAX 4096 +#endif + #if !defined(UINT32_MAX) #define UINT32_MAX 4294967295U #endif diff --git a/polly/lib/External/ppcg/cuda_common.c b/polly/lib/External/ppcg/cuda_common.c index 497353f431..dd0690fb4e 100644 --- a/polly/lib/External/ppcg/cuda_common.c +++ b/polly/lib/External/ppcg/cuda_common.c @@ -15,6 +15,11 @@ #include "cuda_common.h" #include "ppcg.h" +// For GNU Hurd +#if defined(__GNU__) && !defined(PATH_MAX) +# define PATH_MAX 4096 +#endif + /* Open the host .cu file and the kernel .hu and .cu files for writing. * Add the necessary includes. */