hurd-pathmax

===================================================================

Gbp-Pq: Topic hurd
Gbp-Pq: Name hurd-pathmax.diff
This commit is contained in:
LLVM Packaging Team 2022-06-27 14:58:57 +08:00 committed by Lu zhiping
parent de70270588
commit 904995c140
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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.
*/