Skip to content

Commit 4c4e435

Browse files
committed
fixed linux build error
1 parent 661bede commit 4c4e435

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

otherarch/llama-util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ struct llama_v3_mmap {
223223
#endif
224224
addr = mmap(NULL, file->size, PROT_READ, flags, fd, 0);
225225
if (addr == MAP_FAILED) {
226-
throw std::runtime_error(format("mmap failed: %s", strerror(errno)));
226+
throw std::runtime_error(format_old("mmap failed: %s", strerror(errno)));
227227
}
228228

229229
if (prefetch > 0) {

otherarch/llama_v2-util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ struct llama_v2_mmap {
171171
#endif
172172
addr = mmap(NULL, file->size, PROT_READ, flags, fd, 0);
173173
if (addr == MAP_FAILED) {
174-
throw std::runtime_error(format("mmap failed: %s", strerror(errno)));
174+
throw std::runtime_error(format_old("mmap failed: %s", strerror(errno)));
175175
}
176176

177177
if (prefetch) {

0 commit comments

Comments
 (0)