From 4c4e4358ed54c397d3f0f5bc268f1ac59d909f57 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 24 Aug 2023 22:12:56 +0800 Subject: [PATCH] fixed linux build error --- otherarch/llama-util.h | 2 +- otherarch/llama_v2-util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/otherarch/llama-util.h b/otherarch/llama-util.h index 68dd42032..0eb55e79a 100644 --- a/otherarch/llama-util.h +++ b/otherarch/llama-util.h @@ -223,7 +223,7 @@ struct llama_v3_mmap { #endif addr = mmap(NULL, file->size, PROT_READ, flags, fd, 0); if (addr == MAP_FAILED) { - throw std::runtime_error(format("mmap failed: %s", strerror(errno))); + throw std::runtime_error(format_old("mmap failed: %s", strerror(errno))); } if (prefetch > 0) { diff --git a/otherarch/llama_v2-util.h b/otherarch/llama_v2-util.h index 862c2abb9..41b6df386 100644 --- a/otherarch/llama_v2-util.h +++ b/otherarch/llama_v2-util.h @@ -171,7 +171,7 @@ struct llama_v2_mmap { #endif addr = mmap(NULL, file->size, PROT_READ, flags, fd, 0); if (addr == MAP_FAILED) { - throw std::runtime_error(format("mmap failed: %s", strerror(errno))); + throw std::runtime_error(format_old("mmap failed: %s", strerror(errno))); } if (prefetch) {