Skip to content

Commit c54f6b7

Browse files
mmap : skip resource limit checks on AIX (#12541)
1 parent 9b169a4 commit c54f6b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-mmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ struct llama_mlock::impl {
476476

477477
char* errmsg = std::strerror(errno);
478478
bool suggest = (errno == ENOMEM);
479-
#if defined(TARGET_OS_VISION) || defined(TARGET_OS_TV)
479+
#if defined(TARGET_OS_VISION) || defined(TARGET_OS_TV) || defined(_AIX)
480480
// visionOS/tvOS dont't support RLIMIT_MEMLOCK
481481
// Skip resource limit checks on visionOS/tvOS
482482
suggest = false;

0 commit comments

Comments
 (0)