hurd-pathmax

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

Gbp-Pq: Topic hurd
Gbp-Pq: Name hurd-pathmax.diff
This commit is contained in:
Ubuntu Developers 2022-07-16 17:45:42 +08:00 committed by Lu zhiping
parent 5149035362
commit 63109ea12d
3 changed files with 16 additions and 0 deletions

View File

@ -526,6 +526,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<const FileEntry *> &UIDToFiles) const {
UIDToFiles.clear();

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