From: LLVM Packaging Team Date: Sat, 31 Oct 2020 13:09:15 +0000 (+0000) Subject: hurd-pathmax X-Git-Tag: archive/raspbian/1%9.0.1-15+rpi1^2~23 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c626808a16b3b043e6450ed295dc94fef282e1b;p=llvm-toolchain-9.git hurd-pathmax =================================================================== Gbp-Pq: Topic hurd Gbp-Pq: Name hurd-pathmax.diff --- diff --git a/lldb/include/lldb/lldb-defines.h b/lldb/include/lldb/lldb-defines.h index b87964403..0a7d4e63f 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 497353f43..dd0690fb4 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. */