Revert "Make mmap_file static"

This reverts commit d68c5dc435.
This commit is contained in:
anzz1 2023-04-02 15:39:59 +03:00
parent 7ae9e74031
commit 28e787574b

View file

@ -296,7 +296,7 @@ struct llama_context_params llama_context_default_params() {
// model loading
//
static void * mmap_file(const char* fname) {
void * mmap_file(const char* fname) {
#if defined(MAP_FAILED)
// POSIX mmap
int fd = open(fname, O_RDONLY);