mmap : skip resource limit checks on AIX (#12541)

This commit is contained in:
Prajwal B Mehendarkar 2025-03-24 15:47:10 +05:30 committed by GitHub
parent 9b169a4d4e
commit c54f6b7988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -476,7 +476,7 @@ struct llama_mlock::impl {
char* errmsg = std::strerror(errno);
bool suggest = (errno == ENOMEM);
#if defined(TARGET_OS_VISION) || defined(TARGET_OS_TV)
#if defined(TARGET_OS_VISION) || defined(TARGET_OS_TV) || defined(_AIX)
// visionOS/tvOS dont't support RLIMIT_MEMLOCK
// Skip resource limit checks on visionOS/tvOS
suggest = false;